Firmware SDK
twr_usb_cdc

USB CDC communication library. More...

Functions

void twr_usb_cdc_init (void)
 Initialize USB CDC library.
 
bool twr_usb_cdc_write (const void *buffer, size_t length)
 Write buffer to USB CDC (non-blocking call) More...
 
size_t twr_usb_cdc_read (void *buffer, size_t length)
 Read buffer from USB CDC (non-blocking call) More...
 

Detailed Description

USB CDC communication library.

Function Documentation

◆ twr_usb_cdc_read()

size_t twr_usb_cdc_read ( void *  buffer,
size_t  length 
)

Read buffer from USB CDC (non-blocking call)

Parameters
[out]bufferPointer to buffer to be read
[in]lengthNumber of bytes to be read
Returns
Number of bytes read

Definition at line 62 of file twr_usb_cdc.c.

Here is the call graph for this function:

◆ twr_usb_cdc_write()

bool twr_usb_cdc_write ( const void *  buffer,
size_t  length 
)

Write buffer to USB CDC (non-blocking call)

Parameters
[in]bufferPointer to buffer to be written
[in]lengthNumber of bytes to be written
Returns
true On success
false On failure

Definition at line 46 of file twr_usb_cdc.c.

Here is the call graph for this function: