83Plus:Software:usb8x/BASIC Interface/IsDeviceConnected

From WikiTI
Revision as of 14:51, 16 July 2006 by Dan Englender (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Name: IsDeviceConnected

Function Number: 0

Minimum usb8x version: 0.07

Returns whether a USB device is connected

Inputs

None

Outputs

  • 1: Error code
  • 2: 1 = device connected

Notes

Like the assembly language version of this routine, IsDeviceConnected doesn't actually check to see if a device is connected. Instead, it checks whether an A-style USB cable is plugged into the UBS port, regardless of whether there's a device connected to the other side.