MSS_USBH_task

Function MSS_USBH_task 

Source
pub unsafe extern "C" fn MSS_USBH_task()
Expand description

The MSS_USBH_task() function is the main task of the USBH driver. This function must be called repeatedly by the application to allow the USBH driver to perform the housekeeping tasks. A timer/scheduler can be used to call this function at regular intervals or it can be called from the main continuous foreground loop of the application.

@param This function does not take any parameters.

@return This function does not return any value.

Example: @code void Host_controller_task ( void ) { MSS_USBH_task(); MSS_USBH_HID_task(); switch (c_state) { case CONTROLLER_IDLE: if(USBH_MSD_DEVICE_READY == MSS_USBH_MSC_get_state()) { c_state = CONTROLLER_INQUIRY; } break; . default: break; } } @endcode