Files
chopstx/example-usb-serial/cdc.h
2017-12-14 15:46:38 +09:00

12 lines
284 B
C

#define BUFSIZE 64
struct cdc;
void cdc_init (void);
void cdc_wait_configured (void);
struct cdc *cdc_open (uint8_t num);
void cdc_wait_connection (struct cdc *);
int cdc_send (struct cdc *s, const char *buf, int count);
int cdc_recv (struct cdc *s, char *buf, uint32_t *timeout);