Main Page   Modules   Data Structures   File List   Data Fields   Globals  

bitbuf.h File Reference

Multipurpose bit buffer structure and methods. More...

Go to the source code of this file.

Data Structures

struct  struct_BitBuf

Typedefs

typedef struct_BitBuf BitBuf

Functions

void bitbufInit (BitBuf *bitBuffer, unsigned char *start, unsigned short bytesize)
 initialize a buffer to start at a given address and have given size

unsigned char bitbufGet (BitBuf *bitBuffer)
 get the bit at the current position in the buffer

unsigned char bitbufGetAtIndex (BitBuf *bitBuffer, unsigned short bitIndex)
 get a bit at the specified index in the buffer (kind of like array access)

void bitbufStore (BitBuf *bitBuffer, unsigned char bit)
 store a bit at the current position in the buffer

unsigned short bitbufGetDataLength (BitBuf *bitBuffer)
 return the number of bits in the buffer

void bitbufReset (BitBuf *bitBuffer)
 resets the read/write position of the buffer to beginning

void bitbufFlush (BitBuf *bitBuffer)
 flush (clear) the contents of the buffer


Detailed Description

Multipurpose bit buffer structure and methods.

Definition in file bitbuf.h.


Generated on Sun Feb 22 19:12:31 2004 for Procyon AVRlib by doxygen1.3-rc2