Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: nRF24L01P_Hello_World nRF24L01P
Diff: circularBuffer.h
- Revision:
- 5:668dd9395ca5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/circularBuffer.h Fri Apr 16 16:01:03 2021 +0000 @@ -0,0 +1,20 @@ +#ifndef CIRCULAR_BUFFER_H +#define CIRCULAR_BUFFER_H + +#define BUFFER_SIZE 128 + +//TX +void cbTxSendMessage(char* message, int length); +void cbTxAddOne(char value); +char cbTxGetOne(); +int cbTxRemainingSize(); +int cbTxGetDataSize(); + +//RX +void cbRxAddOne(char value); +char cbRxGetOne(); +unsigned char cbRxIsDataAvailable(); +int cbRxRemainingSize(); +int cbRxGetDataSize(); + +#endif \ No newline at end of file