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

Functions

void UsbDeviceHidCom_Init (stc_usbn_t *pstcUsb)
 Initialisation callback. More...
 
uint32_t UsbDeviceHidCom_GetReceivedData (uint8_t *pu8OutBuffer)
 Send data. More...
 
boolean_t UsbDeviceHidCom_Send (uint8_t *pu8Buffer, en_usbsend_mode_t enMode)
 Send data. More...
 
boolean_t UsbDeviceHidCom_IsSending (void)
 Check if data transfer is still in process. More...
 
boolean_t UsbDeviceHidCom_DataSent (void)
 Check if data transfer was transmitted. More...
 

Detailed Description

Provided functions of USB Device HID Communication module:

Used to send or receive 64 byte block data

Function Documentation

boolean_t UsbDeviceHidCom_DataSent ( void  )

Check if data transfer was transmitted.

Returns
TRUE if data was sent

Definition at line 249 of file UsbDeviceHidCom.c.

References bDataSent.

uint32_t UsbDeviceHidCom_GetReceivedData ( uint8_t *  pu8OutBuffer)

Send data.

Parameters
pu8OutBufferPointer to data buffer where to write in data
Returns
number of bytes read

Definition at line 263 of file UsbDeviceHidCom.c.

References bDataReceived, FALSE, stc_usbn_endpoint_data::pstcEndpointBuffer, pstcUsbHandle, stc_usbn_endpoint_buffer::pu8Buffer, TRUE, stc_usbn_endpoint_buffer::u32BufferSize, UsbDevice_ReceiveData(), and UsbIRQ.

Here is the call graph for this function:

boolean_t UsbDeviceHidCom_IsSending ( void  )

Check if data transfer is still in process.

Returns
TRUE on sending

Definition at line 237 of file UsbDeviceHidCom.c.

References bDataSent.

boolean_t UsbDeviceHidCom_Send ( uint8_t *  pu8Buffer,
en_usbsend_mode_t  enMode 
)

Send data.

Parameters
pu8BufferPointer to data buffer
enModeTransfer mode (UsbPOLL, UsbDMA, UsbIRQ)
Returns
TRUE on success

Definition at line 215 of file UsbDeviceHidCom.c.

References bDataSent, bReady, FALSE, pstcUsbHandle, TRUE, UsbDevice_SendData(), and UsbPOLL.

Here is the call graph for this function: