PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
UsbDeviceCmsisDap.h File Reference
#include "usb.h"
#include "usbdevice.h"
Include dependency graph for UsbDeviceCmsisDap.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

CMSIS-DAP HID Communication Backend for protocol layer visit http://www.arm.com

History:

  • 2014-02-28 1.0 MSc First public version

Definition in file UsbDeviceCmsisDap.h.

Function Documentation

boolean_t UsbDeviceCmsisDap_DataSent ( void  )

Check if data transfer was transmitted.

Returns
TRUE if data was sent

Definition at line 373 of file UsbDeviceCmsisDap.c.

References bDataSent.

uint32_t UsbDeviceCmsisDap_GetReceivedData ( uint8_t *  pu8OutBuffer)

Send data.

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

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.

Here is the call graph for this function:

boolean_t UsbDeviceCmsisDap_IsSending ( void  )

Check if data transfer is still in process.

Returns
TRUE on sending

Definition at line 361 of file UsbDeviceCmsisDap.c.

References bDataSent.

boolean_t UsbDeviceCmsisDap_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 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().

Here is the call graph for this function:

Here is the caller graph for this function:

void UsbDeviceCmsisDap_Tick ( void  )