usbHostEnable (Function) |
Top Previous Next |
The usbHostEnable function enable/disable support for USB devices. When disabled the USB power is removed from the USB host port. Please consult the technical manual for details on how many USB host ports a specific device offers.
The USB host is disabled as default, and must be enabled before devices can be discovered using usbHostEnumerate.
Input: port : SINT (1 .. 127) The USB host port to enable/disable. (1=usb1, 2=usb2, etc.)
enable : BOOL (false/true)
Returns: INT
Declaration: FUNCTION usbHostEnable : INT;
Example: INCLUDE rtcu.inc |