PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
USB Host Middleware: HID Com - Data Communicaton

Functions

void UsbHostHidCom_DataReceivedHandler (stc_usbn_t *pstcUsb)
 
void UsbHostHidCom_DataSentHandler (stc_usbn_t *pstcUsb)
 
void UsbHostHidCom_SetDataSentHandler (void(*_UsbHostHidComDataSentHandler)(void))
 
void UsbHostHidCom_SetDataReceivedHandler (void(*_UsbHostHidComDataReceivedHandler)(uint8_t *pu8Buffer))
 
void UsbHostHidCom_InitiateSending (uint8_t *pu8Buffer)
 
void UsbHostHidCom_SendPolled (uint8_t *pu8Buffer)
 
uint8_t * UsbHostHidCom_ReceivePolled (void)
 
boolean_t UsbHostHidCom_IsSent (void)
 
boolean_t UsbHostHidCom_IsSending (void)
 
boolean_t UsbHostHidCom_IsReceived (void)
 
boolean_t UsbHostHidCom_DriverActive (void)
 
boolean_t UsbHostHidCom_InitHandler (stc_usbn_t *pstcUsb, uint8_t *pu8Configuration, uint32_t u32Length)
 
boolean_t UsbHostHidCom_DeinitHandler (stc_usbn_t *pstcUsb)
 

Detailed Description

Provided functions of USB Host HID Communication module:

Following procedures are used for the UsbHostClassSupervisor:

Used to send or receive 64 byte block data

Function Documentation

void UsbHostHidCom_DataReceivedHandler ( stc_usbn_t *  pstcUsb)

Definition at line 77 of file UsbHostHidCom.c.

References bDataReceived, FALSE, pu8DataReceived, TRUE, and UsbHostHidComDataReceivedHandler.

Referenced by UsbHostHidCom_InitHandler().

Here is the caller graph for this function:

void UsbHostHidCom_DataSentHandler ( stc_usbn_t *  pstcUsb)

Definition at line 87 of file UsbHostHidCom.c.

References bDataSending, bDataSent, FALSE, TRUE, and UsbHostHidComDataSentHandler.

Referenced by UsbHostHidCom_InitHandler(), UsbHostHidCom_InitiateSending(), and UsbHostHidCom_SendPolled().

Here is the caller graph for this function:

boolean_t UsbHostHidCom_DeinitHandler ( stc_usbn_t *  pstcUsb)

Definition at line 214 of file UsbHostHidCom.c.

References bDataReceived, bDataSending, bDataSent, FALSE, pstcUsbHandle, TRUE, and u8Status.

boolean_t UsbHostHidCom_DriverActive ( void  )

Definition at line 224 of file UsbHostHidCom.c.

References pstcUsbHandle.

boolean_t UsbHostHidCom_InitHandler ( stc_usbn_t *  pstcUsb,
uint8_t *  pu8Configuration,
uint32_t  u32Length 
)
void UsbHostHidCom_InitiateSending ( uint8_t *  pu8Buffer)

Definition at line 108 of file UsbHostHidCom.c.

References bDataSending, bDataSent, EndpointOUT, FALSE, pstcUsbHandle, TRUE, and UsbHostHidCom_DataSentHandler().

Here is the call graph for this function:

boolean_t UsbHostHidCom_IsReceived ( void  )

Definition at line 140 of file UsbHostHidCom.c.

References bDataReceived.

boolean_t UsbHostHidCom_IsSending ( void  )

Definition at line 135 of file UsbHostHidCom.c.

References bDataSending.

boolean_t UsbHostHidCom_IsSent ( void  )

Definition at line 130 of file UsbHostHidCom.c.

References bDataSent.

uint8_t* UsbHostHidCom_ReceivePolled ( void  )

Definition at line 123 of file UsbHostHidCom.c.

References bDataReceived, FALSE, and pu8DataReceived.

void UsbHostHidCom_SendPolled ( uint8_t *  pu8Buffer)

Definition at line 115 of file UsbHostHidCom.c.

References bDataSending, bDataSent, EndpointOUT, FALSE, pstcUsbHandle, TRUE, and UsbHostHidCom_DataSentHandler().

Here is the call graph for this function:

void UsbHostHidCom_SetDataReceivedHandler ( void(*)(uint8_t *pu8Buffer)  _UsbHostHidComDataReceivedHandler)

Definition at line 103 of file UsbHostHidCom.c.

References UsbHostHidComDataReceivedHandler.

void UsbHostHidCom_SetDataSentHandler ( void(*)(void)  _UsbHostHidComDataSentHandler)

Definition at line 98 of file UsbHostHidCom.c.

References UsbHostHidComDataSentHandler.