27 #ifndef _CSP_BUFFER_H_ 28 #define _CSP_BUFFER_H_ int csp_buffer_remaining(void)
Return how many buffers that are currently free.
int csp_buffer_size(void)
Return the size of the CSP buffers.
void csp_buffer_free_isr(void *packet)
Free a buffer after use in ISR context.
void * csp_buffer_get_isr(size_t buf_size)
Get a reference to a free buffer.
void * csp_buffer_clone(void *buffer)
Clone an existing packet and increase/decrease cloned packet size.
void csp_buffer_free(void *packet)
Free a buffer after use.
void * csp_buffer_get(size_t size)
Get a reference to a free buffer.
int csp_buffer_init(int count, int size)
Start the buffer handling system You must specify the number for buffers and the size.