APM:Libraries
Functions
ring_buff.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static unsigned ring_wrap (unsigned size, unsigned idx)
 
static unsigned ring_data_avail (unsigned size, unsigned head, unsigned tail)
 
static unsigned ring_space_avail (unsigned size, unsigned head, unsigned tail)
 
static unsigned ring_data_contig (unsigned size, unsigned head, unsigned tail)
 
static unsigned ring_space_contig (unsigned size, unsigned head, unsigned tail)
 
static unsigned ring_space_wrapped (unsigned size, unsigned head, unsigned tail)
 

Function Documentation

◆ ring_data_avail()

static unsigned ring_data_avail ( unsigned  size,
unsigned  head,
unsigned  tail 
)
inlinestatic

Definition at line 14 of file ring_buff.h.

Referenced by ring_space_avail(), and VCP_DataAvail().

Here is the caller graph for this function:

◆ ring_data_contig()

static unsigned ring_data_contig ( unsigned  size,
unsigned  head,
unsigned  tail 
)
inlinestatic

Definition at line 29 of file ring_buff.h.

Referenced by schedule_cdc_in(), usbd_cdc_DataIn(), and VCP_DataAvailContig().

Here is the caller graph for this function:

◆ ring_space_avail()

static unsigned ring_space_avail ( unsigned  size,
unsigned  head,
unsigned  tail 
)
inlinestatic

Definition at line 23 of file ring_buff.h.

Referenced by VCP_SpaceAvail().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ring_space_contig()

static unsigned ring_space_contig ( unsigned  size,
unsigned  head,
unsigned  tail 
)
inlinestatic

Definition at line 38 of file ring_buff.h.

Referenced by try_start_rx(), and VCP_SpaceAvailContig().

Here is the caller graph for this function:

◆ ring_space_wrapped()

static unsigned ring_space_wrapped ( unsigned  size,
unsigned  head,
unsigned  tail 
)
inlinestatic

Definition at line 47 of file ring_buff.h.

Referenced by try_start_rx().

Here is the caller graph for this function:

◆ ring_wrap()

static unsigned ring_wrap ( unsigned  size,
unsigned  idx 
)
inlinestatic

Definition at line 8 of file ring_buff.h.

Referenced by schedule_cdc_in(), usbd_cdc_DataIn(), usbd_cdc_DataOut(), VCP_MarkRead(), and VCP_MarkWritten().

Here is the caller graph for this function: