Embedded Wireless Framework
Typedefs | Functions
EWF Platform API - Queue

Functions for abstracting the platform where EWF is running. More...

Typedefs

typedef struct _ewf_platform_queue ewf_platform_queue
 The generic queue type.
 

Functions

ewf_result ewf_platform_queue_create (ewf_platform_queue *queue_ptr)
 Create a queue. More...
 
ewf_result ewf_platform_queue_destroy (ewf_platform_queue *queue_ptr)
 Destroy a queue. More...
 
ewf_result ewf_platform_queue_enqueue (ewf_platform_queue *queue_ptr, const void *data_ptr, uint32_t data_size, bool wait)
 Enqueue an item. More...
 
ewf_result ewf_platform_queue_dequeue (ewf_platform_queue *queue_ptr, void *buffer_ptr, uint32_t *buffer_size_ptr, bool wait)
 Dequeue an item. More...
 

Detailed Description

Functions for abstracting the platform where EWF is running.

Function Documentation

◆ ewf_platform_queue_create()

ewf_result ewf_platform_queue_create ( ewf_platform_queue queue_ptr)

Create a queue.

Returns
ewf_result status code

◆ ewf_platform_queue_dequeue()

ewf_result ewf_platform_queue_dequeue ( ewf_platform_queue queue_ptr,
void *  buffer_ptr,
uint32_t *  buffer_size_ptr,
bool  wait 
)

Dequeue an item.

Returns
ewf_result status code

◆ ewf_platform_queue_destroy()

ewf_result ewf_platform_queue_destroy ( ewf_platform_queue queue_ptr)

Destroy a queue.

Returns
ewf_result status code

◆ ewf_platform_queue_enqueue()

ewf_result ewf_platform_queue_enqueue ( ewf_platform_queue queue_ptr,
const void *  data_ptr,
uint32_t  data_size,
bool  wait 
)

Enqueue an item.

Returns
ewf_result status code