Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Go to the source code of this file.
Data Structures | |
struct | pbuf_cfg |
Control block of packet buffer. More... | |
struct | pbuf_data |
Data block of the packed buffer. More... | |
struct | pbuf |
Scure packed buffer. More... | |
Macros | |
#define | PBUF_PACKET_LEN_SZ sizeof(uint32_t) |
Size of packet length field. | |
#define | PBUF_MAYBE_CONST const |
#define | PBUF_CFG_INIT(mem_addr, size, dcache_align) |
Macro for configuration initialization. | |
#define | PBUF_HEADER_OVERHEAD(dcache_align) |
Macro calculates memory overhead taken by the header in shared memory. | |
#define | PBUF_DEFINE(name, mem_addr, size, dcache_align) |
Statically define and initialize pbuf. | |
Functions | |
int | pbuf_tx_init (struct pbuf *pb) |
Initialize the Tx packet buffer. | |
int | pbuf_rx_init (struct pbuf *pb) |
Initialize the Rx packet buffer. | |
int | pbuf_write (struct pbuf *pb, const char *buf, uint16_t len) |
Write specified amount of data to the packet buffer. | |
int | pbuf_read (struct pbuf *pb, char *buf, uint16_t len) |
Read specified amount of data from the packet buffer. | |