![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
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... | |
Provided functions of USB Device HID Communication module:
Used to send or receive 64 byte block data
| boolean_t UsbDeviceHidCom_DataSent | ( | void | ) |
Check if data transfer was transmitted.
Definition at line 249 of file UsbDeviceHidCom.c.
References bDataSent.
| uint32_t UsbDeviceHidCom_GetReceivedData | ( | uint8_t * | pu8OutBuffer | ) |
Send data.
| pu8OutBuffer | Pointer to data buffer where to write in data |
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.

| void UsbDeviceHidCom_Init | ( | stc_usbn_t * | pstcUsb | ) |
Initialisation callback.
| pstcUsb | Pointer to USB instance |
Definition at line 156 of file UsbDeviceHidCom.c.
References ConfCallback(), stc_usbdevice_class_config::pfnConfCallback, stc_usbdevice_class_config::pfnConnectionCallback, stc_usbdevice_class_config::pfnDisconnectionCallback, stc_usbdevice_endpoint_config::pfnRxTxCallback, stc_usbdevice_class_config::pfnSetupRequestCallback, ppu8Buffers, stc_usbdevice_endpoint_config::pstcEndpointBuffer, pstcUsbHandle, pu32BufferSizes, RxTxCallback(), stc_usbdevice_endpoint_config::u8EndpointAddress, stc_usbdevice_class_config::u8InterfaceClass, stc_usbdevice_class_config::u8InterfaceNumber, stc_usbdevice_class_config::u8InterfaceProtocoll, stc_usbdevice_class_config::u8InterfaceSubClass, u8MaxSupportedEndpoints, USBDESCR_ENDPOINT, UsbDevice_ReceiveData(), UsbDevice_RegisterVendorClass(), UsbDevice_SetupEndpoint(), and UsbIRQ.

| boolean_t UsbDeviceHidCom_IsSending | ( | void | ) |
Check if data transfer is still in process.
Definition at line 237 of file UsbDeviceHidCom.c.
References bDataSent.
| boolean_t UsbDeviceHidCom_Send | ( | uint8_t * | pu8Buffer, |
| en_usbsend_mode_t | enMode | ||
| ) |
Send data.
| pu8Buffer | Pointer to data buffer |
| enMode | Transfer mode (UsbPOLL, UsbDMA, UsbIRQ) |
Definition at line 215 of file UsbDeviceHidCom.c.
References bDataSent, bReady, FALSE, pstcUsbHandle, TRUE, UsbDevice_SendData(), and UsbPOLL.
