PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
UsbHostClassSupervisor.h File Reference
#include "usb.h"
#include "UsbHost.h"
Include dependency graph for UsbHostClassSupervisor.h:
This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

Part of FSEU USB Host Driver Module

History:

  • 2011-03-30 1.0 MSc First version
  • 2012-06-01 2.0 MSc New Version for use with M3 L3 USB driver
  • 2013-10-14 2.1 MSc PDL support added

Definition in file UsbHostClassSupervisor.h.

Macro Definition Documentation

#define USBCLASSSVR_CLASSCHECK   2
#define USBCLASSSVR_ERROR   3

Definition at line 72 of file UsbHostClassSupervisor.h.

Referenced by UsbClassSupervisor_SysTickHandler().

#define USBCLASSSVR_REQUEST_DESCRIPTORS   1

Definition at line 70 of file UsbHostClassSupervisor.h.

Referenced by UsbClassSupervisor_SysTickHandler().

Typedef Documentation

typedef uint8_t UsbClassDriver_t

Definition at line 78 of file UsbHostClassSupervisor.h.

Function Documentation

void UsbClassSupervisor_Deinit ( stc_usbn_t *  pstcUsb)
UsbClassDriver_t UsbClassSupervisor_GetActiveDriver ( stc_usbn_t *  pstcUsb)

Definition at line 229 of file UsbHostClassSupervisor.c.

References stc_usbclasssupervisor_intern_data::CurrentDriver, and UsbClassSupervisorGetInternDataPtr().

Here is the call graph for this function:

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

Here is the call graph for this function:

Variable Documentation

const stc_usb_request_t stcDeviceDescriptorRequest