|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| bool | sectorMarked (unsigned idx) |
| void | sectorMark (unsigned idx) |
| bool | sectorEnsureErased (uint32_t absAddr) |
| bool | appendSpanning (const uint8_t *data, size_t len) |
| bool | appendRecord (uint16_t tag, uint32_t t_ms, const void *payload, uint16_t payload_len) |
Variables | |
| SPIFlash * | s_flash = nullptr |
| uint32_t | s_logBase = 0 |
| uint32_t | s_logEnd = 0 |
| uint32_t | s_nextAddr = 0 |
| constexpr unsigned | MAX_SECTORS = 128 |
| uint8_t | s_sectorErased [MAX_SECTORS/8] |
| constexpr uint8_t | REC_VER = 1 |
| constexpr size_t | REC_HEADER = 12 |
| bool anonymous_namespace{flight_log.cpp}::appendRecord | ( | uint16_t | tag, |
| uint32_t | t_ms, | ||
| const void * | payload, | ||
| uint16_t | payload_len ) |
Definition at line 66 of file flight_log.cpp.
References appendSpanning(), REC_HEADER, and REC_VER.
Referenced by logFlightStateTransition(), logIsm330(), logLis3dh(), logLps28dfw(), and logMcp3201().
| bool anonymous_namespace{flight_log.cpp}::appendSpanning | ( | const uint8_t * | data, |
| size_t | len ) |
Definition at line 44 of file flight_log.cpp.
References a, end(), s_flash, s_logEnd, s_nextAddr, sectorEnsureErased(), and start().
Referenced by appendRecord().
| bool anonymous_namespace{flight_log.cpp}::sectorEnsureErased | ( | uint32_t | absAddr | ) |
Definition at line 28 of file flight_log.cpp.
References MAX_SECTORS, s_flash, s_logBase, s_logEnd, sectorMark(), and sectorMarked().
Referenced by appendSpanning().
| void anonymous_namespace{flight_log.cpp}::sectorMark | ( | unsigned | idx | ) |
Definition at line 24 of file flight_log.cpp.
References s_sectorErased.
Referenced by sectorEnsureErased().
| bool anonymous_namespace{flight_log.cpp}::sectorMarked | ( | unsigned | idx | ) |
Definition at line 20 of file flight_log.cpp.
References s_sectorErased.
Referenced by sectorEnsureErased().
|
constexpr |
Definition at line 17 of file flight_log.cpp.
Referenced by sectorEnsureErased().
|
constexpr |
Definition at line 64 of file flight_log.cpp.
Referenced by appendRecord().
|
constexpr |
Definition at line 63 of file flight_log.cpp.
Referenced by appendRecord().
| SPIFlash* anonymous_namespace{flight_log.cpp}::s_flash = nullptr |
Definition at line 11 of file flight_log.cpp.
Referenced by appendSpanning(), flightLogInit(), logFlightStateTransition(), logIsm330(), logLis3dh(), logLps28dfw(), logMcp3201(), and sectorEnsureErased().
| uint32_t anonymous_namespace{flight_log.cpp}::s_logBase = 0 |
Definition at line 12 of file flight_log.cpp.
Referenced by flightLogInit(), and sectorEnsureErased().
| uint32_t anonymous_namespace{flight_log.cpp}::s_logEnd = 0 |
Definition at line 13 of file flight_log.cpp.
Referenced by appendSpanning(), flightLogInit(), and sectorEnsureErased().
| uint32_t anonymous_namespace{flight_log.cpp}::s_nextAddr = 0 |
Definition at line 14 of file flight_log.cpp.
Referenced by appendSpanning(), and flightLogInit().
| uint8_t anonymous_namespace{flight_log.cpp}::s_sectorErased[MAX_SECTORS/8] |
Definition at line 18 of file flight_log.cpp.
Referenced by flightLogInit(), sectorMark(), and sectorMarked().