SAMV71 Xplained Ultra Software Package 1.5

pbuf Struct Reference

Data Fields

struct pbufnext
void * payload
u16_t tot_len
u16_t len
u8_t type
u8_t flags
u16_t ref

Detailed Description

Definition at line 64 of file pbuf.h.


Field Documentation

misc flags

Definition at line 87 of file pbuf.h.

length of this buffer

Definition at line 81 of file pbuf.h.

struct pbuf* pbuf::next

next pbuf in singly linked pbuf chain

Definition at line 66 of file pbuf.h.

pointer to the actual data in the buffer

Definition at line 69 of file pbuf.h.

the reference count always equals the number of pointers that refer to this pbuf. This can be pointers from an application, the stack itself, or pbuf->next pointers from a chain.

Definition at line 94 of file pbuf.h.

total length of this buffer and all next buffers in chain belonging to the same packet.

For non-queue packet chains this is the invariant: p->tot_len == p->len + (p->next? p->next->tot_len: 0)

Definition at line 78 of file pbuf.h.

pbuf_type as u8_t instead of enum to save space

Definition at line 84 of file pbuf.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines