Firmware SDK
|
Queue handling functions. More...
Functions | |
void | twr_queue_init (twr_queue_t *queue, void *buffer, size_t size) |
Initialize queue. More... | |
bool | twr_queue_put (twr_queue_t *queue, const void *buffer, size_t length) |
Put buffer to queue. More... | |
bool | twr_queue_get (twr_queue_t *queue, void *buffer, size_t *length) |
Get queue to buffer. More... | |
void | twr_queue_clear (twr_queue_t *queue) |
Clear queue. More... | |
Queue handling functions.
void twr_queue_clear | ( | twr_queue_t * | queue | ) |
Clear queue.
[in] | queue | Instance |
Definition at line 70 of file twr_queue.c.
Referenced by twr_radio_pub_queue_clear().
bool twr_queue_get | ( | twr_queue_t * | queue, |
void * | buffer, | ||
size_t * | length | ||
) |
Get queue to buffer.
[in] | queue | Instance |
[in] | buffer | Buffer to be copied from the queue |
[in] | length | Length of buffer |
Definition at line 45 of file twr_queue.c.
void twr_queue_init | ( | twr_queue_t * | queue, |
void * | buffer, | ||
size_t | size | ||
) |
Initialize queue.
[in] | queue | Instance |
[in] | buffer | Buffer to store the queue |
[in] | size | Buffer size |
Definition at line 3 of file twr_queue.c.
Referenced by twr_radio_init().
bool twr_queue_put | ( | twr_queue_t * | queue, |
const void * | buffer, | ||
size_t | length | ||
) |
Put buffer to queue.
[in] | queue | Instance |
[in] | buffer | Buffer to be copied to queue |
[in] | length | Length of buffer |
Definition at line 11 of file twr_queue.c.