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


Go to the source code of this file.
Data Structures | |
| struct | UsbClassHandler |
| struct | stc_usbclasssupervisor_intern_data |
| struct | stc_usbclasssupervisorn_instance_data |
Macros | |
| #define | USBCLASSSVR_IDLE 0 |
| #define | USBCLASSSVR_REQUEST_DESCRIPTORS 1 |
| #define | USBCLASSSVR_CLASSCHECK 2 |
| #define | USBCLASSSVR_ERROR 3 |
Typedefs | |
| typedef uint8_t | UsbClassDriver_t |
| typedef struct UsbClassHandler | UsbClassHandler_t |
| typedef struct stc_usbclasssupervisor_intern_data | stc_usbclasssupervisor_intern_data_t |
| typedef struct stc_usbclasssupervisorn_instance_data | stc_usbclasssupervisorn_instance_data_t |
Functions | |
| void | UsbClassSupervisor_Init (stc_usbn_t *pstcUsb) |
| void | UsbClassSupervisor_Deinit (stc_usbn_t *pstcUsb) |
| void | UsbClassSupervisor_SysTickHandler (stc_usbn_t *pstcUsb) |
| boolean_t | UsbSupervisor_UsbClassMatch (UsbClassHandler_t *stcA, UsbClassHandler_t *stcB) |
| 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) |
Variables | |
| const stc_usb_request_t | stcDeviceDescriptorRequest |
Part of FSEU USB Host Driver Module
History:
Definition in file UsbHostClassSupervisor.h.
| #define USBCLASSSVR_CLASSCHECK 2 |
Definition at line 71 of file UsbHostClassSupervisor.h.
Referenced by ReturnedConfigurationDescriptor(), and UsbClassSupervisor_SysTickHandler().
| #define USBCLASSSVR_ERROR 3 |
Definition at line 72 of file UsbHostClassSupervisor.h.
Referenced by UsbClassSupervisor_SysTickHandler().
| #define USBCLASSSVR_IDLE 0 |
Definition at line 69 of file UsbHostClassSupervisor.h.
Referenced by ReturnedConfigurationDescriptor(), ReturnedDeviceDescriptor(), UsbClassSupervisor_Init(), and UsbClassSupervisor_SysTickHandler().
| #define USBCLASSSVR_REQUEST_DESCRIPTORS 1 |
Definition at line 70 of file UsbHostClassSupervisor.h.
Referenced by UsbClassSupervisor_SysTickHandler().
| typedef uint8_t UsbClassDriver_t |
Definition at line 78 of file UsbHostClassSupervisor.h.
| typedef struct UsbClassHandler UsbClassHandler_t |
| 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().


| 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().

| const stc_usb_request_t stcDeviceDescriptorRequest |
Referenced by UsbClassSupervisor_SysTickHandler().