flight_recorder.h
used by ccc_shim_rx.c flight_recorder.c woz_uwb_facade.c aliro_shell.c
API
Cfr_writer_t
─ Writer: append records to a fixed caller-owned buffer ─────────────────
Every fr_write_* returns 0 on success or -1 if the record did not fit; on the
first non-fit the writer latches overflow and all further writes are no-ops,
so the buffer always holds a valid record prefix (never a half-written tail).
Cfr_reader_t
─ Reader: iterate a trace buffer ──────────────────────────────────────── fr_read_next fills *out and returns the record type (>0), 0 at clean end, or -1 on a malformed/short/oversized/version-mismatched stream. The first record of a well-formed trace is FR_REC_META and must carry FR_VERSION.
Undocumented (11)
fr_meta, fr_config, fr_ev, fr_end, fr_record, fr_set_enabled, fr_enabled, fr_capture_config, fr_capture_ev, fr_dump, fr_clear