ChibiOS/RT
6.0.3
|
Pipes macros and structures. More...
Go to the source code of this file.
Data Structures | |
struct | pipe_t |
Structure representing a pipe object. More... | |
Macros | |
#define | _PIPE_DATA(name, buffer, size) |
Data part of a static pipe initializer. More... | |
#define | PIPE_DECL(name, buffer, size) pipe_t name = _PIPE_DATA(name, buffer, size) |
Static pipe initializer. More... | |
Functions | |
void | chPipeObjectInit (pipe_t *pp, uint8_t *buf, size_t n) |
Initializes a mailbox_t object. More... | |
void | chPipeReset (pipe_t *pp) |
Resets a pipe_t object. More... | |
size_t | chPipeWriteTimeout (pipe_t *pp, const uint8_t *bp, size_t n, sysinterval_t timeout) |
Pipe write with timeout. More... | |
size_t | chPipeReadTimeout (pipe_t *pp, uint8_t *bp, size_t n, sysinterval_t timeout) |
Pipe read with timeout. More... | |
static size_t | chPipeGetSize (const pipe_t *pp) |
Returns the pipe buffer size as number of bytes. More... | |
static size_t | chPipeGetUsedCount (const pipe_t *pp) |
Returns the number of used byte slots into a pipe. More... | |
static size_t | chPipeGetFreeCount (const pipe_t *pp) |
Returns the number of free byte slots into a pipe. More... | |
static void | chPipeResume (pipe_t *pp) |
Terminates the reset state. More... | |
Pipes macros and structures.
Definition in file chpipes.h.