Difference between revisions of "83Plus:Software:usb8x/BASIC Interface/IsDeviceConnected"
From WikiTI
m (UBS->USB typo) |
|||
Line 16: | Line 16: | ||
== Notes == | == 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 | + | 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 USB port, regardless of whether there's a device connected to the other side. |
Latest revision as of 20:37, 6 January 2007
Contents
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 USB port, regardless of whether there's a device connected to the other side.