|
uint8_t | _timeType |
|
boolean | _framesDiscarded |
|
|
uint8_t | b_write (const uint8_t b) |
|
uint8_t | b_write (const uint8_t *b, uint8_t length) |
|
int | b_read () |
|
int | b_read (uint8_t *dest, int length) |
|
uint8_t | b_seek (unsigned long pos) |
|
|
unsigned long | _max_length |
|
RTC * | _rtc |
|
unsigned long | _read_pos |
|
unsigned long | _write_pos |
|
unsigned long | _pos |
|
unsigned long | _end |
|
◆ addPacket()
uint8_t BayEOSBuffer::addPacket |
( |
const uint8_t * |
payload, |
|
|
uint8_t |
length |
|
) |
| |
Add BayEOS frame packet to buffer returns number of bytes written
◆ available()
unsigned long BayEOSBuffer::available |
( |
void |
| ) |
|
Check if there are any bytes available for reading from the buffer. returns number of bytes available for reed
◆ freeSpace() [1/2]
uint8_t BayEOSBuffer::freeSpace |
( |
uint16_t |
length | ) |
|
Checks if there is "length" space left return 0 if not
◆ freeSpace() [2/2]
unsigned long BayEOSBuffer::freeSpace |
( |
void |
| ) |
|
Gives free space left in buffer
◆ initNextPacket()
uint8_t BayEOSBuffer::initNextPacket |
( |
void |
| ) |
|
Initialize next packet at read pointer
◆ initPacket()
uint8_t BayEOSBuffer::initPacket |
( |
unsigned long |
pos | ) |
|
◆ makeFreeSpace()
void BayEOSBuffer::makeFreeSpace |
( |
uint16_t |
length | ) |
|
◆ next()
void BayEOSBuffer::next |
( |
void |
| ) |
|
Set read pointer to next packet
◆ packetLength()
uint8_t BayEOSBuffer::packetLength |
( |
void |
| ) |
|
◆ packetMillis()
unsigned long BayEOSBuffer::packetMillis |
( |
void |
| ) |
|
◆ readBinary() [1/2]
uint8_t BayEOSBuffer::readBinary |
( |
unsigned long |
pos, |
|
|
uint8_t |
length, |
|
|
uint8_t * |
dest |
|
) |
| |
◆ readBinary() [2/2]
uint8_t BayEOSBuffer::readBinary |
( |
unsigned long |
pos, |
|
|
unsigned long |
end, |
|
|
uint8_t |
length, |
|
|
uint8_t * |
dest |
|
) |
| |
Read packet to dest but stop at end
◆ readPacket()
int BayEOSBuffer::readPacket |
( |
uint8_t * |
dest | ) |
|
◆ reset()
void BayEOSBuffer::reset |
( |
void |
| ) |
|
◆ rtc()
uint8_t BayEOSBuffer::rtc |
( |
void |
| ) |
|
check existance of rtc return true if there is a rtc
◆ seekReadPointer()
void BayEOSBuffer::seekReadPointer |
( |
unsigned long |
pos | ) |
|
◆ set()
void BayEOSBuffer::set |
( |
unsigned long |
pos | ) |
|
◆ setRTC()
void BayEOSBuffer::setRTC |
( |
RTC & |
rtc, |
|
|
uint8_t |
timeType = RTC_ABSOLUTE_SECONDS |
|
) |
| |
set rtc pointer to a RTC instance NOTE: setting absolute_time to false will result in relative time delayed frames...
◆ skip()
void BayEOSBuffer::skip |
( |
void |
| ) |
|
skips unsent frames and moves read pointer to write pointer
The documentation for this class was generated from the following files:
- BayEOS-Arduino/libraries/BayEOSBuffer/BayEOSBuffer.h
- BayEOS-Arduino/libraries/BayEOSBuffer/BayEOSBuffer.cpp