Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_usb_cdc

USB CDC communication library. More...

Functions

void bc_usb_cdc_init (void)
 Initialize USB CDC library.
 
bool bc_usb_cdc_write (const void *buffer, size_t length)
 Write buffer to USB CDC (non-blocking call) More...
 
size_t bc_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

size_t bc_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 bc_usb_cdc.c.

Here is the call graph for this function:

bool bc_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 bc_usb_cdc.c.

Here is the call graph for this function: