Main Page   Data Structures   File List   Data Fields   Globals  

/bitbuf.c File Reference

Multipurpose bit buffer structure and methods. More...

#include "bitbuf.h"

Go to the source code of this file.

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

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

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


Detailed Description

Multipurpose bit buffer structure and methods.

Definition in file bitbuf.c.


Generated on Fri Aug 1 10:42:43 2003 for Procyon AVRlib by doxygen1.2.18