LED clock
 All Files Functions Variables Macros Groups
Macros | Functions | Variables
usb_cdcacm.h File Reference

library for USB CDC ACM communication (API) More...

Go to the source code of this file.

Macros

#define CDCACM_BUFFER   64
 transmit and receive buffer sizes
 

Functions

void cdcacm_setup (void)
 setup USB CDC ACM peripheral
 
char cdcacm_getchar (void)
 get character received over USB (blocking) More...
 
void cdcacm_putchar (char c)
 send character over USB (non-blocking) More...
 

Variables

volatile uint8_t cdcacm_received
 how many bytes available in the received buffer since last read
 

Detailed Description

library for USB CDC ACM communication (API)

Author
King Kévin kingk.nosp@m.evin.nosp@m.@cuvo.nosp@m.odoo.nosp@m..info
Date
2016

Definition in file usb_cdcacm.h.

Function Documentation

char cdcacm_getchar ( void  )

get character received over USB (blocking)

Returns
character received over USB
Note
blocks until character is received over USB when received buffer is empty

Definition at line 379 of file usb_cdcacm.c.

void cdcacm_putchar ( char  c)

send character over USB (non-blocking)

Parameters
[in]ccharacter to send
Note
blocks if transmit buffer is full, else puts in buffer and returns

Definition at line 391 of file usb_cdcacm.c.