modules/woz_aliro/include/aliro_lat.h
openaliro/openaliro
Module

aliro_lat.h

modules/woz_aliro/include/aliro_lat.h3 documented symbols

Overview

@file aliro_lat.h Latency tracking for Aliro protocol phases during a walk-up: record BLE_CONNECT as epoch zero, mark timestamps for each phase, emit a report with elapsed intervals and flight-recorder diagnostics.

used by aliro_lat.c aliro_ranging.c aliro_reader.c

API

Fstatic inline void aliro_lat_begin(void)

modules/woz_aliro/include/aliro_lat.h:74

Initialize latency tracking; record the BLE_CONNECT epoch as the zero reference for all subsequent phase timestamps.

Fstatic inline int aliro_lat_mark(enum aliro_lat_phase phase)

modules/woz_aliro/include/aliro_lat.h:81

Record the current uptime for a given Aliro protocol phase if not yet marked; return 1 if newly recorded, 0 if already marked or out of range.

Fstatic inline void aliro_lat_report(void)

modules/woz_aliro/include/aliro_lat.h:90

Emit a latency report showing all recorded phase timestamps and elapsed intervals; dump flight-recorder lab traces if CONFIG_WOZ_ALIRO_LAB is enabled and tracing is active.

Cenum aliro_lat_phase

modules/woz_aliro/include/aliro_lat.h:31