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

Queue handling functions. More...

Functions

void bc_queue_init (bc_queue_t *queue, void *buffer, size_t size)
 Initialize queue. More...
 
bool bc_queue_put (bc_queue_t *queue, const void *buffer, size_t length)
 Put buffer to queue. More...
 
bool bc_queue_get (bc_queue_t *queue, void *buffer, size_t *length)
 Get queue to buffer. More...
 

Detailed Description

Queue handling functions.

Function Documentation

bool bc_queue_get ( bc_queue_t *  queue,
void *  buffer,
size_t *  length 
)

Get queue to buffer.

Parameters
[in]queueInstance
[in]bufferBuffer to be copied from the queue
[in]lengthLength of buffer
Returns
true On success
false On failure

Definition at line 45 of file bc_queue.c.

void bc_queue_init ( bc_queue_t *  queue,
void *  buffer,
size_t  size 
)

Initialize queue.

Parameters
[in]queueInstance
[in]bufferBuffer to store the queue
[in]sizeBuffer size

Definition at line 3 of file bc_queue.c.

Referenced by bc_radio_init().

Here is the caller graph for this function:

bool bc_queue_put ( bc_queue_t *  queue,
const void *  buffer,
size_t  length 
)

Put buffer to queue.

Parameters
[in]queueInstance
[in]bufferBuffer to be copied to queue
[in]lengthLength of buffer
Returns
true On success
false On failure

Definition at line 11 of file bc_queue.c.