|
BayEOSArduino Library
|


Public Member Functions | |
| BayEOSBufferEEPROM () | |
| void | init (uint8_t i2c_address, unsigned long max_length, uint16_t pointer_offset=12) |
Public Member Functions inherited from BayEOSBuffer | |
| unsigned long | available (void) |
| uint8_t | freeSpace (uint16_t length) |
| void | makeFreeSpace (uint16_t length) |
| unsigned long | freeSpace (void) |
| int | readPacket (uint8_t *dest) |
| uint8_t | readBinary (unsigned long pos, uint8_t length, uint8_t *dest) |
| uint8_t | readBinary (unsigned long pos, unsigned long end, uint8_t length, uint8_t *dest) |
| void | next (void) |
| void | set (unsigned long pos) |
| void | seekReadPointer (unsigned long pos) |
| void | reset (void) |
| void | skip (void) |
| uint8_t | addPacket (const uint8_t *payload, uint8_t length) |
| uint8_t | initPacket (unsigned long pos) |
| uint8_t | initNextPacket (void) |
| uint8_t | packetLength (void) |
| unsigned long | packetMillis (void) |
| void | setRTC (RTC &rtc, uint8_t timeType=RTC_ABSOLUTE_SECONDS) |
| uint8_t | rtc (void) |
| unsigned long | getTime (void) |
| unsigned long | writePos (void) |
| unsigned long | readPos (void) |
| unsigned long | endPos (void) |
| unsigned long | length (void) |
Additional Inherited Members | |
Public Attributes inherited from BayEOSBuffer | |
| uint8_t | _timeType |
| boolean | _framesDiscarded |
Protected Member Functions inherited from BayEOSBuffer | |
| 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) |
Protected Attributes inherited from BayEOSBuffer | |
| unsigned long | _max_length |
| RTC * | _rtc |
| unsigned long | _read_pos |
| unsigned long | _write_pos |
| unsigned long | _pos |
| unsigned long | _end |
| BayEOSBufferEEPROM::BayEOSBufferEEPROM | ( | ) |
Constructor
| void BayEOSBufferEEPROM::init | ( | uint8_t | i2c_address, |
| unsigned long | max_length, | ||
| uint16_t | pointer_offset = 12 |
||
| ) |
Init EEPROM Buffer
Per default, _read_pos, _write_pos and _end are saved to the last 12 bytes of the eeprom For long running eeproms one may reach the limit of 1.000.000 write cycles on this address! set pointer_offset=0 to disable storing of poiters