![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
Macros | |
| #define | BUFFER_SIZE_ENDPOINT1 512 |
Functions | |
| void | UsbDeviceLibUsb_Init (stc_usbn_t *pstcUsb) |
| static void | ClassSetupRequest0 (stc_usbn_t *pstcUsb, stc_usb_request_t *pstcSetup) |
| uint32_t | UsbDeviceLibUsb_GetReceivedDataEndpoint1 (uint8_t **ppu8Buffer) |
| boolean_t | UsbDeviceLibUsb_SendDataVia2 (stc_usbn_t *pstcUsb, uint8_t *pu8Buffer, uint32_t u32DataSize, en_usbsend_mode_t enMode) |
| uint8_t | UsbDeviceLibUsb_DataSent2 (void) |
Provided functions of USB Device LibUSB module:
Used to communicate with LibUSB backend
| #define BUFFER_SIZE_ENDPOINT1 512 |
Definition at line 96 of file UsbDeviceLibUsb.h.
Referenced by UsbDeviceLibUsb_Init(), and UsbDeviceLibUsb_RxCallbackEp1().
|
static |
| uint8_t UsbDeviceLibUsb_DataSent2 | ( | void | ) |
Is used to use get the sent status of endpoint 2
Definition at line 239 of file UsbDeviceLibUsb.c.
References DataSentFlags.
| uint32_t UsbDeviceLibUsb_GetReceivedDataEndpoint1 | ( | uint8_t ** | ppu8Buffer | ) |
Is used to use received data from endpoint
| ppu8Buffer | pointer to buffer |
Definition at line 184 of file UsbDeviceLibUsb.c.
References DataReceivedFlags, stc_usbn_endpoint_data::pstcEndpointBuffer, stc_usbn_endpoint_buffer::pu8Buffer, and u32LastReceivedSize1.
| void UsbDeviceLibUsb_Init | ( | stc_usbn_t * | pstcUsb | ) |
Is called to initialize this class (usally in UsbConfig.c)
| pstcUsb | USB Handle |
Definition at line 116 of file UsbDeviceLibUsb.c.
References BUFFER_SIZE_ENDPOINT1, ClassSetupRequest0(), 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, stc_usbdevice_endpoint_config::pstcEndpointBuffer, pu8BufferEp1, stcEpBuffer1, stcEpBuffer2, 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, UsbDevice_ReceiveData(), UsbDevice_RegisterVendorClass(), UsbDevice_SetupEndpoint(), UsbDeviceLibUsb_RxCallbackEp1(), UsbDeviceLibUsb_TxCallbackEp2(), and UsbIRQ.

| boolean_t UsbDeviceLibUsb_SendDataVia2 | ( | stc_usbn_t * | pstcUsb, |
| uint8_t * | pu8Buffer, | ||
| uint32_t | u32DataSize, | ||
| en_usbsend_mode_t | enMode | ||
| ) |
Is called from main application to send data via endpoint
| pstcUsb | USB Handle |
| pu8Buffer | Buffer to send |
| u32DataSize | Buffersize |
| enMode | polled sending, interrupt sending or DMA |
Definition at line 207 of file UsbDeviceLibUsb.c.
References DataSentFlags, UsbConfigured, UsbDevice_GetStatus(), UsbDevice_SendData(), and UsbPOLL.
