This is an old revision of the document!
USBSTATUS
Synopsis
Get status of the USB driver
Description
The USBSTATUS
command returns the current status of the USB driver. Information is encoded in a byte as follows:
Bit | Value | Meaning |
---|---|---|
0 | Clear | USB cable is connected. |
Set | USB cable is disconnected. | |
1 | Clear | USB driver has not completed its configuration. |
Set | USB driver has completed its configuration. | |
2 | Clear | USB data is not incoming. |
Set | USB data is incoming. |
Compatibility
This command is new in newRPL and does not exist in userRPL.
Usage
1: …………………………………………………………………………………… USBSTATUS
will result in
1: #3h ……………………………………………………………………………………
if the calculator is connected to a PC and the OS has correctly recognized its presence.
Related Commands
Command | Short Description | |
---|---|---|
USBSTATUS | Get status of the USB driver | NEW |
USBRECV | Receive an object through USB link | NEW |
USBSEND | Send an object through the USB link | NEW |
USBOFF | Disable USB port | NEW |
USBON | Enable USB port | NEW |
USBAUTORCV | Receive an object and execute it | NEW |
USBARCHIVE | Create a backup on a remote machine | NEW |
USBRESTORE | Restore a backup from a remote machine | NEW |