65 #define XBEE_CBUF_OVERHEAD sizeof(xbee_cbuf_t) 133 #define xbee_cbuf_length(cbuf) ((cbuf)->mask) 187 unsigned int length);
200 unsigned int length);
209 #endif // XBEE_CBUF_H defined #define FAR
On platforms with "far" pointers, define to the proper keyword; empty definition if not required...
Definition: platform.h:396
unsigned int xbee_cbuf_put(xbee_cbuf_t FAR *cbuf, const void FAR *buffer, unsigned int length)
Append multiple bytes to the end of a circular buffer.
Definition: xbee_cbuf.c:102
#define XBEE_BEGIN_DECLS
Macro defined to.
Definition: platform.h:41
unsigned int xbee_cbuf_get(xbee_cbuf_t *cbuf, void FAR *buffer, unsigned int length)
Read (and remove) multiple bytes from circular buffer.
Definition: xbee_cbuf.c:136
void xbee_cbuf_flush(xbee_cbuf_t FAR *cbuf)
Flush the contents of the circular buffer.
Definition: xbee_cbuf.c:95
unsigned int xbee_cbuf_free(xbee_cbuf_t FAR *cbuf)
Returns the number of additional bytes that can be stored in the circular buffer. ...
Definition: xbee_cbuf.c:88
int xbee_cbuf_getch(xbee_cbuf_t FAR *cbuf)
Remove and return the first byte of the circular buffer.
Definition: xbee_cbuf.c:63
int xbee_cbuf_putch(xbee_cbuf_t FAR *cbuf, uint_fast8_t ch)
Append a single byte to the circular buffer (if not full).
Definition: xbee_cbuf.c:46
unsigned char uint8_t
8-bit unsigned integer
Definition: platform_config.h:39
int xbee_cbuf_init(xbee_cbuf_t FAR *cbuf, unsigned int datasize)
Initialize the fields of the circular buffer.
Definition: xbee_cbuf.c:32
#define XBEE_END_DECLS
Macro defined to.
Definition: platform.h:42
unsigned int xbee_cbuf_used(xbee_cbuf_t FAR *cbuf)
Returns the number of bytes stored in the circular buffer.
Definition: xbee_cbuf.c:81
Circular buffer used by transparent serial cluster handler.
Definition: cbuf.h:31