83Plus:Software:usb8x/BASIC Interface/IsDeviceConnected: Difference between revisions
From WikiTI
Jump to navigationJump to search
No edit summary |
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 04:37, 7 January 2007
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.