Microchip® Advanced Software Framework

miqueue.h File Reference

Queue handling for MiWi Protocol interface.

Copyright (c) 2018 - 2019 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"

Data Structures

struct  MiQueue
 Queue structure. More...
 
struct  miQueueBuffer
 
struct  search_tag
 Structure to search for a buffer to be removed from a queue. More...
 

Macros

#define BUFFER_POINTER(buf)   ((buf)->buffer)
 This macro provides the pointer to the corresponding body of the supplied buffer header. More...
 

Typedefs

typedef struct MiQueue MiQueue_t
 Queue structure. More...
 
typedef struct miQueueBuffer miQueueBuffer_t
 
typedef struct search_tag search_t
 Structure to search for a buffer to be removed from a queue. More...
 

Functions

void miQueueAppend (MiQueue_t *q, void *buf)
 Appends a buffer into the queue. More...
 
void miQueueFlush (MiQueue_t *q)
 Internal function for flushing a specific queue. More...
 
void miQueueInit (MiQueue_t *q)
 Initializes the queue. More...
 
miQueueBuffer_tmiQueueRead (MiQueue_t *q, search_t *search)
 Reads a buffer from queue. More...
 
miQueueBuffer_tmiQueueRemove (MiQueue_t *q, search_t *search)
 Removes a buffer from queue. More...