Microchip® Advanced Software Framework

queuebuf.c File Reference

    Implementation of the Rime queue buffers
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "contiki-net.h"
#include <string.h>

Data Structures

struct  queuebuf
 
struct  queuebuf_data
 
struct  queuebuf_ref
 

Macros

#define _DEBUG_   0
 
#define PRINTF(...)
 
#define QUEUEBUF_REF_NUM   2
 
#define QUEUEBUF_STATS   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)
 
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