csp_queue.h File Reference
#include <stdint.h>
#include <csp/csp.h>

Go to the source code of this file.

Macros

#define CSP_QUEUE_FULL   0
 
#define CSP_QUEUE_ERROR   0
 
#define CSP_QUEUE_OK   1
 

Typedefs

typedef void * csp_queue_handle_t
 

Functions

csp_queue_handle_t csp_queue_create (int length, size_t item_size)
 
void csp_queue_remove (csp_queue_handle_t queue)
 
int csp_queue_enqueue (csp_queue_handle_t handle, void *value, uint32_t timeout)
 
int csp_queue_enqueue_isr (csp_queue_handle_t handle, void *value, CSP_BASE_TYPE *task_woken)
 
int csp_queue_dequeue (csp_queue_handle_t handle, void *buf, uint32_t timeout)
 
int csp_queue_dequeue_isr (csp_queue_handle_t handle, void *buf, CSP_BASE_TYPE *task_woken)
 
int csp_queue_size (csp_queue_handle_t handle)
 
int csp_queue_size_isr (csp_queue_handle_t handle)