![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|


Go to the source code of this file.
Functions | |
| void | UsbDeviceCmsisDap_Init (stc_usbn_t *pstcUsb) |
| Initialisation callback. More... | |
| uint32_t | UsbDeviceCmsisDap_GetReceivedData (uint8_t *pu8OutBuffer) |
| Send data. More... | |
| boolean_t | UsbDeviceCmsisDap_Send (uint8_t *pu8Buffer, en_usbsend_mode_t enMode) |
| Send data. More... | |
| boolean_t | UsbDeviceCmsisDap_IsSending (void) |
| Check if data transfer is still in process. More... | |
| boolean_t | UsbDeviceCmsisDap_DataSent (void) |
| Check if data transfer was transmitted. More... | |
| void | UsbDeviceCmsisDap_Tick (void) |
CMSIS-DAP HID Communication Backend for protocol layer visit http://www.arm.com
History:
Definition in file UsbDeviceCmsisDap.h.
| boolean_t UsbDeviceCmsisDap_DataSent | ( | void | ) |
Check if data transfer was transmitted.
Definition at line 373 of file UsbDeviceCmsisDap.c.
References bDataSent.
| uint32_t UsbDeviceCmsisDap_GetReceivedData | ( | uint8_t * | pu8OutBuffer | ) |
Send data.
| pu8OutBuffer | Pointer to data buffer where to write in data |
Definition at line 387 of file UsbDeviceCmsisDap.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 UsbDeviceCmsisDap_Init | ( | stc_usbn_t * | pstcUsb | ) |
Initialisation callback.
| pstcUsb | Pointer to USB instance |
Definition at line 213 of file UsbDeviceCmsisDap.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, stc_usbdevice_endpoint_config::pstcEndpointBuffer, pstcUsbHandle, pu8BufferOUT, RxTxCallback(), stcEndpointBufferIN, stcEndpointBufferOUT, 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, USB_RequestFlag, USB_RequestIn, USB_RequestOut, USB_ResponseFlag, USB_ResponseIdle, USB_ResponseIn, USB_ResponseOut, USBDESCR_ENDPOINT, UsbDevice_ReceiveData(), UsbDevice_RegisterVendorClass(), UsbDevice_SetupEndpoint(), and UsbIRQ.

| boolean_t UsbDeviceCmsisDap_IsSending | ( | void | ) |
Check if data transfer is still in process.
Definition at line 361 of file UsbDeviceCmsisDap.c.
References bDataSent.
| boolean_t UsbDeviceCmsisDap_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 283 of file UsbDeviceCmsisDap.c.
References bDataSent, bReady, FALSE, pstcUsbHandle, TRUE, USB_ResponseFlag, USB_ResponseIdle, USB_ResponseIn, USB_ResponseOut, UsbDevice_SendData(), and UsbPOLL.
Referenced by UsbDeviceCmsisDap_Tick().


| void UsbDeviceCmsisDap_Tick | ( | void | ) |
Definition at line 312 of file UsbDeviceCmsisDap.c.
References DAP_ProcessVendorCommand(), USB_Request, USB_RequestFlag, USB_RequestIn, USB_RequestOut, USB_Response, USB_ResponseFlag, USB_ResponseIdle, USB_ResponseIn, USB_ResponseOut, UsbDeviceCmsisDap_Send(), UsbDMA, and UsbIRQ.
