| Summary |
#include <rl_usb.h>
BOOL usbh_uninit (
U8 ctrl
);
|
| Description | The usbh_uninit function uninitializes the USB Host Stack and USB Host Controller Hardware. The argument ctrl is the index of USB Host Controller. It can be used if during the application run time USB Host Stack needs to be disabled for whatever reason (for example lowering power consumption). After usbh_uninit function is called only usbh_init should be called for reinitialization of USB Host Stack and USB Host Controller Hardware. The usbh_uninit function is part of the RL-USB Host software stack. |
| Return Value | The usbh_uninit function returns one of the following manifest constants. - __TRUE
Success. - __FALSE
Indicates that function has failed. Function usbh_get_last_error can be called to determine reason of function failure.
|
| See Also | usbh_engine, usbh_engine_all, usbh_get_error_string, usbh_get_last_error, usbh_init, usbh_init_all, usbh_uninit_all |
| Example |
#include <rl_usb.h>
int main (void) {
..
usbh_init(0); // USB Host Initialize
..
usbh_uninit(0); // USB Host Uninitialize
..
}
|