![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|

Go to the source code of this file.
Macros | |
| #define | __USBHOSTCLASSSUPERVISOR_C__ |
| #define | USBCLASSSUPERVISOR_INSTANCE_COUNT (uint32_t)(sizeof(m_astcUsbClassSupervisorInstanceDataLut) / sizeof(m_astcUsbClassSupervisorInstanceDataLut[0])) |
| Macro to return the number of enabled MFS instances. More... | |
Functions | |
| static stc_usbclasssupervisor_intern_data_t * | UsbClassSupervisorGetInternDataPtr (stc_usbn_t *pstcUsb) |
| Return the internal data for a certain USB instance. More... | |
| void | UsbClassSupervisor_Init (stc_usbn_t *pstcUsb) |
| void | UsbClassSupervisor_Deinit (stc_usbn_t *pstcUsb) |
| void | UsbClassSupervisor_SysTickHandler (stc_usbn_t *pstcUsb) |
| void | UsbClassSupervisor_SetErrorHandler (stc_usbn_t *pstcUsb, void(*Handler)(stc_usbn_t *pstcUsb, UsbClassHandler_t stcMatchClass)) |
| UsbClassDriver_t | UsbClassSupervisor_GetActiveDriver (stc_usbn_t *pstcUsb) |
| void | ReturnedDeviceDescriptor (stc_usbn_t *pstcUsb, uint8_t *pu8Buffer, uint32_t u32DataSize) |
| void | ReturnedConfigurationDescriptor (stc_usbn_t *pstcUsb, uint8_t *pu8Buffer, uint32_t u32DataSize) |
| boolean_t | UsbSupervisor_UsbClassMatch (UsbClassHandler_t *stcA, UsbClassHandler_t *stcB) |
Variables | |
| stc_usbclasssupervisorn_instance_data_t | m_astcUsbClassSupervisorInstanceDataLut [] |
| Look-up table for all enabled MFS instances and their internal data. More... | |
Part of USB Host Driver Module
History:
Definition in file UsbHostClassSupervisor.c.
| #define __USBHOSTCLASSSUPERVISOR_C__ |
Definition at line 57 of file UsbHostClassSupervisor.c.
| #define USBCLASSSUPERVISOR_INSTANCE_COUNT (uint32_t)(sizeof(m_astcUsbClassSupervisorInstanceDataLut) / sizeof(m_astcUsbClassSupervisorInstanceDataLut[0])) |
Macro to return the number of enabled MFS instances.
Definition at line 97 of file UsbHostClassSupervisor.c.
Referenced by UsbClassSupervisorGetInternDataPtr().
| void ReturnedConfigurationDescriptor | ( | stc_usbn_t * | pstcUsb, |
| uint8_t * | pu8Buffer, | ||
| uint32_t | u32DataSize | ||
| ) |
Definition at line 258 of file UsbHostClassSupervisor.c.
References stc_usbclasssupervisor_intern_data::pu8Configuration, ReturnedConfigurationDescriptor(), stc_usbclasssupervisor_intern_data::stcMatchClass, stc_usbclasssupervisor_intern_data::u32ConfigurationSize, UsbClassHandler::u8MatchInterfaceClass, UsbClassHandler::u8MatchInterfaceProtocol, UsbClassHandler::u8MatchInterfaceSubClass, stc_usbclasssupervisor_intern_data::u8SupervisorState, Usb_AddTimeOut(), USB_CONFIGURATION_DESCRIPTOR_TYPE, Usb_RemoveTimeOut(), UsbClassSupervisor_SysTickHandler(), UsbClassSupervisorGetInternDataPtr(), USBCLASSSVR_CLASSCHECK, USBCLASSSVR_IDLE, USBDBG, and stc_usb_request::wLength.
Referenced by ReturnedConfigurationDescriptor(), and ReturnedDeviceDescriptor().


| void ReturnedDeviceDescriptor | ( | stc_usbn_t * | pstcUsb, |
| uint8_t * | pu8Buffer, | ||
| uint32_t | u32DataSize | ||
| ) |
Definition at line 236 of file UsbHostClassSupervisor.c.
References ReturnedConfigurationDescriptor(), stc_usbclasssupervisor_intern_data::stcMatchClass, UsbClassHandler::u16IdProduct, UsbClassHandler::u16IdVendor, UsbClassHandler::u8MatchDeviceClass, UsbClassHandler::u8MatchDeviceProtocol, UsbClassHandler::u8MatchDeviceSubClass, stc_usbclasssupervisor_intern_data::u8SupervisorState, Usb_AddTimeOut(), Usb_RemoveTimeOut(), UsbClassSupervisor_SysTickHandler(), UsbClassSupervisorGetInternDataPtr(), USBCLASSSVR_IDLE, and USBDBG.
Referenced by UsbClassSupervisor_SysTickHandler().


| void UsbClassSupervisor_Deinit | ( | stc_usbn_t * | pstcUsb | ) |
Definition at line 150 of file UsbHostClassSupervisor.c.
References stc_usbclasssupervisor_intern_data::CurrentDriver, stc_usbclasssupervisor_intern_data::stcMatchClass, UsbClassSupervisorGetInternDataPtr(), and UsbSupervisor_UsbClassMatch().

| UsbClassDriver_t UsbClassSupervisor_GetActiveDriver | ( | stc_usbn_t * | pstcUsb | ) |
Definition at line 229 of file UsbHostClassSupervisor.c.
References stc_usbclasssupervisor_intern_data::CurrentDriver, and UsbClassSupervisorGetInternDataPtr().

| void UsbClassSupervisor_Init | ( | stc_usbn_t * | pstcUsb | ) |
Definition at line 138 of file UsbHostClassSupervisor.c.
References stc_usbclasssupervisor_intern_data::CurrentDriver, stc_usbclasssupervisor_intern_data::InternalErrorHandler, stc_usbclasssupervisor_intern_data::u8SupervisorState, Usb_AddTimeOut(), Usb_RemoveTimeOut(), UsbClassSupervisor_SysTickHandler(), UsbClassSupervisorGetInternDataPtr(), and USBCLASSSVR_IDLE.

| void UsbClassSupervisor_SetErrorHandler | ( | stc_usbn_t * | pstcUsb, |
| void(*)(stc_usbn_t *pstcUsb, UsbClassHandler_t stcMatchClass) | Handler | ||
| ) |
Definition at line 222 of file UsbHostClassSupervisor.c.
References stc_usbclasssupervisor_intern_data::InternalErrorHandler, and UsbClassSupervisorGetInternDataPtr().

| void UsbClassSupervisor_SysTickHandler | ( | stc_usbn_t * | pstcUsb | ) |
Definition at line 169 of file UsbHostClassSupervisor.c.
References stc_usbclasssupervisor_intern_data::CurrentDriver, stc_usbclasssupervisor_intern_data::InternalErrorHandler, stc_usbclasssupervisor_intern_data::pu8Configuration, ReturnedDeviceDescriptor(), stcDeviceDescriptorRequest, stc_usbclasssupervisor_intern_data::stcMatchClass, TRUE, stc_usbclasssupervisor_intern_data::u32ConfigurationSize, stc_usbclasssupervisor_intern_data::u8SupervisorState, Usb_AddTimeOut(), UsbClassSupervisor_SysTickHandler(), UsbClassSupervisorGetInternDataPtr(), USBCLASSSVR_CLASSCHECK, USBCLASSSVR_ERROR, USBCLASSSVR_IDLE, USBCLASSSVR_REQUEST_DESCRIPTORS, USBDBG, and UsbSupervisor_UsbClassMatch().
Referenced by ReturnedConfigurationDescriptor(), ReturnedDeviceDescriptor(), UsbClassSupervisor_Init(), and UsbClassSupervisor_SysTickHandler().


|
static |
Return the internal data for a certain USB instance.
| pstcUsb | Pointer to USB instance |
Definition at line 123 of file UsbHostClassSupervisor.c.
References stc_usbclasssupervisorn_instance_data::stcInternData, and USBCLASSSUPERVISOR_INSTANCE_COUNT.
Referenced by ReturnedConfigurationDescriptor(), ReturnedDeviceDescriptor(), UsbClassSupervisor_Deinit(), UsbClassSupervisor_GetActiveDriver(), UsbClassSupervisor_Init(), UsbClassSupervisor_SetErrorHandler(), and UsbClassSupervisor_SysTickHandler().

| boolean_t UsbSupervisor_UsbClassMatch | ( | UsbClassHandler_t * | stcA, |
| UsbClassHandler_t * | stcB | ||
| ) |
Definition at line 308 of file UsbHostClassSupervisor.c.
References FALSE, TRUE, UsbClassHandler::u16IdProduct, UsbClassHandler::u16IdVendor, UsbClassHandler::u8MatchDeviceClass, UsbClassHandler::u8MatchDeviceProtocol, UsbClassHandler::u8MatchDeviceSubClass, UsbClassHandler::u8MatchInterfaceClass, UsbClassHandler::u8MatchInterfaceProtocol, and UsbClassHandler::u8MatchInterfaceSubClass.
Referenced by UsbClassSupervisor_Deinit(), and UsbClassSupervisor_SysTickHandler().

| stc_usbclasssupervisorn_instance_data_t m_astcUsbClassSupervisorInstanceDataLut[] |
Look-up table for all enabled MFS instances and their internal data.
Definition at line 100 of file UsbHostClassSupervisor.c.