cbuffer.h File Reference

The driver lib contains support functions for drivers. More...

#include "typedefs.h"

Go to the source code of this file.

Classes

struct  t_cbuffer
 Structure of the cyclic buffer. More...

Typedefs

typedef byte t_index
 This data type is used to enumerate the cyclic buffers.

Functions

unsigned cb_fill (t_cbuffer *p)
 indicates the number of bytes in the buffer
byte cb_full (t_cbuffer *p)
byte cb_empty (t_cbuffer *p)
byte cb_get (t_cbuffer *p)
 get a character from the cyclic buffer
void cb_put (t_cbuffer *p, byte value)
 Put a byte in the buffer.
void cb_init (t_cbuffer *p)


Detailed Description

The driver lib contains support functions for drivers.

Even thought this projects intention is not to provide overloaded abstractions, this library is trying to provide such abstractions.

Cyclic Buffers

Driver Pipes

Definition in file cbuffer.h.


Generated on Mon Sep 29 19:56:48 2008 for mKernel by  doxygen 1.4.6