Component: BufferedLog
This components supports high frequency logging. While one buffer is
filled by application, the other buffer is written to EEPROM as a
background task.
It supports the LogData
interface, but only allows
individual appends up to the buffer size (currently 128). It is
expected that each append will be small (e.g., a single or small
group of sensor samples)
- LogData
-
result_t fastAppend(uint8_t *data, uint8_t n)
- uint8_t syncState
- norace uint8_t buffer1[BufferedLog.BUFSIZE]
- norace uint8_t buffer2[BufferedLog.BUFSIZE]
- norace uint8_t *buffer
- norace uint8_t *toFlush
- norace uint8_t offset
- norace uint8_t flushCount
- norace bool flushing
- uint8_t state = BufferedLog.S_NOWRITE
- void userFlushDone(void)
- void systemFlushDone(void)