1 /*----------------------------------------------------------------------------
3 * Purpose: usb cdc buffer handling
5 *---------------------------------------------------------------------------*/
10 #include "projectconfig.h"
12 // Buffer used for circular fifo
13 typedef struct _cdc_buffer_t
16 volatile uint8_t wr_ptr
;
17 volatile uint8_t rd_ptr
;
18 uint8_t buf
[CFG_USBCDC_BUFFERSIZE
];
21 cdc_buffer_t
* cdcGetBuffer();
23 uint8_t cdcBufferRead();
24 uint32_t cdcBufferReadLen(uint8_t* buf
, uint32_t len
);
25 void cdcBufferWrite(uint8_t data
);
26 void cdcBufferClearFIFO();
27 uint8_t cdcBufferDataPending();
This page took 0.057045 seconds and 5 git commands to generate.