RetroArch
Classes | Macros | Enumerations | Functions
btpbuf.h File Reference
#include "bt.h"
Include dependency graph for btpbuf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pbuf
 

Macros

#define PBUF_FLAG_RAM   0x00U /* Flags that pbuf data is stored in RAM */
 
#define PBUF_FLAG_ROM   0x01U /* Flags that pbuf data is stored in ROM */
 
#define PBUF_FLAG_POOL   0x02U /* Flags that the pbuf comes from the pbuf pool */
 
#define PBUF_FLAG_REF   0x04U /* Flags thet the pbuf payload refers to RAM */
 

Enumerations

enum  pbuf_layer {
  PBUF_TRANSPORT, PBUF_IP, PBUF_LINK, PBUF_RAW,
  PBUF_TRANSPORT, PBUF_LINK, PBUF_RAW
}
 
enum  pbuf_flag {
  PBUF_RAM, PBUF_ROM, PBUF_REF, PBUF_POOL,
  PBUF_POOL, PBUF_RAM, PBUF_ROM, PBUF_REF
}
 

Functions

void btpbuf_init ()
 
struct pbufbtpbuf_alloc (pbuf_layer layer, u16_t len, pbuf_flag flag)
 
u8_t btpbuf_free (struct pbuf *p)
 
void btpbuf_realloc (struct pbuf *p, u16_t new_len)
 
u8_t btpbuf_header (struct pbuf *p, s16_t hdr_size_inc)
 
void btpbuf_cat (struct pbuf *h, struct pbuf *t)
 
u8_t btpbuf_clen (struct pbuf *p)
 
void btpbuf_queue (struct pbuf *p, struct pbuf *n)
 
void btpbuf_ref (struct pbuf *p)
 
void btpbuf_chain (struct pbuf *h, struct pbuf *t)
 
struct pbufbtpbuf_dequeue (struct pbuf *p)
 
struct pbufbtpbuf_dechain (struct pbuf *p)
 
struct pbufbtpbuf_take (struct pbuf *p)
 

Macro Definition Documentation

◆ PBUF_FLAG_POOL

#define PBUF_FLAG_POOL   0x02U /* Flags that the pbuf comes from the pbuf pool */

◆ PBUF_FLAG_RAM

#define PBUF_FLAG_RAM   0x00U /* Flags that pbuf data is stored in RAM */

◆ PBUF_FLAG_REF

#define PBUF_FLAG_REF   0x04U /* Flags thet the pbuf payload refers to RAM */

◆ PBUF_FLAG_ROM

#define PBUF_FLAG_ROM   0x01U /* Flags that pbuf data is stored in ROM */

Enumeration Type Documentation

◆ pbuf_flag

enum pbuf_flag
Enumerator
PBUF_RAM 
PBUF_ROM 
PBUF_REF 
PBUF_POOL 
PBUF_POOL 
PBUF_RAM 
PBUF_ROM 
PBUF_REF 

◆ pbuf_layer

enum pbuf_layer
Enumerator
PBUF_TRANSPORT 
PBUF_IP 
PBUF_LINK 
PBUF_RAW 
PBUF_TRANSPORT 
PBUF_LINK 
PBUF_RAW 

Function Documentation

◆ btpbuf_alloc()

struct pbuf* btpbuf_alloc ( pbuf_layer  layer,
u16_t  len,
pbuf_flag  flag 
)
Here is the call graph for this function:

◆ btpbuf_cat()

void btpbuf_cat ( struct pbuf h,
struct pbuf t 
)
Here is the caller graph for this function:

◆ btpbuf_chain()

void btpbuf_chain ( struct pbuf h,
struct pbuf t 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btpbuf_clen()

u8_t btpbuf_clen ( struct pbuf p)

◆ btpbuf_dechain()

struct pbuf* btpbuf_dechain ( struct pbuf p)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btpbuf_dequeue()

struct pbuf* btpbuf_dequeue ( struct pbuf p)

◆ btpbuf_free()

u8_t btpbuf_free ( struct pbuf p)
Here is the call graph for this function:

◆ btpbuf_header()

u8_t btpbuf_header ( struct pbuf p,
s16_t  hdr_size_inc 
)
Here is the caller graph for this function:

◆ btpbuf_init()

void btpbuf_init ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btpbuf_queue()

void btpbuf_queue ( struct pbuf p,
struct pbuf n 
)
Here is the call graph for this function:

◆ btpbuf_realloc()

void btpbuf_realloc ( struct pbuf p,
u16_t  new_len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btpbuf_ref()

void btpbuf_ref ( struct pbuf p)
Here is the caller graph for this function:

◆ btpbuf_take()

struct pbuf* btpbuf_take ( struct pbuf p)
Here is the call graph for this function:
Here is the caller graph for this function: