Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Rime queue buffer management

The queuebuf module handles buffers that are queued.

Data Structures

struct  queuebuf
 
struct  queuebuf_data
 
struct  queuebuf_ref
 

Files

file  queuebuf.c
 
    Implementation of the Rime queue buffers

 
file  queuebuf.h
 
    Header file for the Rime queue buffer management

 

Macros

#define _DEBUG_   0
 
#define PRINTF(...)
 
#define QUEUEBUF_DEBUG   0
 
#define QUEUEBUF_NUM   8
 
#define QUEUEBUF_REF_NUM   2
 
#define QUEUEBUF_STATS   0
 
#define QUEUEBUFRAM_NUM   QUEUEBUF_NUM
 
#define WITH_SWAP   0
 

Functions

 if (packetbuf_is_reference())
 
 if (buf!=NULL)
 
 if (buf==NULL)
 
 MEMB (bufmem, struct queuebuf, QUEUEBUF_NUM)
 
 MEMB (refbufmem, struct queuebuf_ref, QUEUEBUF_REF_NUM)
 
 MEMB (buframmem, struct queuebuf_data, QUEUEBUFRAM_NUM)
 
linkaddr_tqueuebuf_addr (struct queuebuf *b, uint8_t type)
 
packetbuf_attr_t queuebuf_attr (struct queuebuf *b, uint8_t type)
 
int queuebuf_datalen (struct queuebuf *b)
 
void * queuebuf_dataptr (struct queuebuf *b)
 
void queuebuf_debug_print (void)
 
void queuebuf_free (struct queuebuf *buf)
 
void queuebuf_init (void)
 
static struct queuebuf_dataqueuebuf_load_to_ram (struct queuebuf *b)
 
struct queuebufqueuebuf_new_from_packetbuf (void)
 
void queuebuf_to_packetbuf (struct queuebuf *b)
 
void queuebuf_update_attr_from_packetbuf (struct queuebuf *buf)
 

Variables

 buf = memb_alloc(&bufmem)
 
 else
 
struct queuebuf *struct
queuebuf_ref
rbuf
 

#define _DEBUG_   0
#define PRINTF (   ...)

Referenced by if().

#define QUEUEBUF_DEBUG   0
#define QUEUEBUF_NUM   8

Referenced by queuebuf_init().

#define QUEUEBUF_REF_NUM   2
#define QUEUEBUF_STATS   0
#define QUEUEBUFRAM_NUM   QUEUEBUF_NUM
#define WITH_SWAP   0

if ( buf  = NULL)

References RIMESTATS_ADD.

MEMB ( bufmem  ,
struct queuebuf  ,
QUEUEBUF_NUM   
)
MEMB ( refbufmem  ,
struct queuebuf_ref  ,
QUEUEBUF_REF_NUM   
)
MEMB ( buframmem  ,
struct queuebuf_data  ,
QUEUEBUFRAM_NUM   
)
linkaddr_t * queuebuf_addr ( struct queuebuf b,
uint8_t  type 
)
packetbuf_attr_t queuebuf_attr ( struct queuebuf b,
uint8_t  type 
)
int queuebuf_datalen ( struct queuebuf b)
void * queuebuf_dataptr ( struct queuebuf b)
void queuebuf_debug_print ( void  )
void queuebuf_init ( void  )

References i, memb_init(), and QUEUEBUF_NUM.

Referenced by main().

struct queuebuf* queuebuf_new_from_packetbuf ( void  )
void queuebuf_update_attr_from_packetbuf ( struct queuebuf buf)

else
Initial value:
{
struct queuebuf_data *buframptr
Definition: queuebuf.c:79
struct queuebuf* struct queuebuf_ref* rbuf
Initial value:
{
struct queuebuf *buf
buf
Definition: queuebuf.c:336
Definition: queuebuf.c:60

Referenced by if().