Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

bitbuf.c File Reference

Detailed Description

Definition in file bitbuf.c.

#include "bitbuf.h"

Go to the source code of this file.


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

Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by  doxygen 1.4.2