ChibiOS  0.0.0
pipe_t Struct Reference

Structure representing a pipe object. More...

#include <chpipes.h>

Collaboration diagram for pipe_t:
Collaboration graph

Data Fields

uint8_t * buffer
 Pointer to the pipe buffer. More...
 
uint8_t * top
 Pointer to the location after the buffer. More...
 
uint8_t * wrptr
 Write pointer. More...
 
uint8_t * rdptr
 Read pointer. More...
 
size_t cnt
 Messages in queue. More...
 
bool reset
 True if in reset state. More...
 
threads_queue_t qw
 Queued writers. More...
 
threads_queue_t qr
 Queued readers. More...
 
mutex_t mtx
 Heap access mutex. More...
 

Detailed Description

Structure representing a pipe object.

Definition at line 52 of file chpipes.h.

Field Documentation

uint8_t* pipe_t::buffer

Pointer to the pipe buffer.

Definition at line 53 of file chpipes.h.

Referenced by chPipeGetSizeI(), chPipeObjectInit(), and chPipeReset().

uint8_t* pipe_t::top

Pointer to the location after the buffer.

Definition at line 55 of file chpipes.h.

Referenced by chPipeGetSizeI(), and chPipeObjectInit().

uint8_t* pipe_t::wrptr

Write pointer.

Definition at line 57 of file chpipes.h.

Referenced by chPipeObjectInit(), and chPipeReset().

uint8_t* pipe_t::rdptr

Read pointer.

Definition at line 58 of file chpipes.h.

Referenced by chPipeObjectInit(), chPipePeekI(), and chPipeReset().

size_t pipe_t::cnt

Messages in queue.

Definition at line 59 of file chpipes.h.

Referenced by chPipeGetUsedCountI(), chPipeObjectInit(), and chPipeReset().

bool pipe_t::reset

True if in reset state.

Definition at line 60 of file chpipes.h.

Referenced by chPipeObjectInit(), chPipeReset(), and chPipeResumeX().

threads_queue_t pipe_t::qw

Queued writers.

Definition at line 61 of file chpipes.h.

Referenced by chPipeObjectInit(), and chPipeReset().

threads_queue_t pipe_t::qr

Queued readers.

Definition at line 62 of file chpipes.h.

Referenced by chPipeObjectInit(), and chPipeReset().

mutex_t pipe_t::mtx

Heap access mutex.

Definition at line 64 of file chpipes.h.