_BUS_BUFFER Struct Reference

#include <buses.h>


Data Fields

BUFTYPE getRx
BUFTYPE getTx
BUFTYPE putRx
BUFTYPE putTx
BYTErxBuf
BUFTYPE rxBufSize
BUFTYPE rxCount
BYTEtxBuf
BUFTYPE txBufSize
BUFTYPE txCount


Detailed Description

Structure containing buffer data for a single bus.

The "txCount" member gives the number of entries currently contained in the buffer. It is also used to indicate when the buffer is emptey: txCount == 0.

To test if the buffer is full, check if txCount == txBufSize

DO NOT use putTx == putTx to test if buffer is empty! This will be true when the buffer is empty AND when it is full!


Field Documentation


The documentation for this struct was generated from the following file:

Generated on Wed Feb 3 12:45:36 2010 for SBC65EC Web Server by  doxygen 1.5.8