modules/woz_uwb/src/ccc/ccc_session.c
asxeem/openaliro
Module
ccc_session.c
Aliro/CCC ranging seam implementation. See ccc_session.h.
Overview
Aliro/CCC ranging seam implementation. See ccc_session.h.
depends on ccc_session.h
API
Fuint16_t ccc_session_n_round(const struct ccc_ran_session *s)
modules/woz_uwb/src/ccc/ccc_session.c:11
Rounds per ranging block, from N_RAN_S and the slot parameters (0 if the denominator is 0).
called by
ccc_session_to_ran_paramsFint ccc_session_to_ran_params(const struct ccc_ran_session *s, struct ccc_ran_params *out)
modules/woz_uwb/src/ccc/ccc_session.c:33
Map an Aliro session onto the CCC MAC's ranging-schedule parameters.
s- Aliro session configuration.
out- Filled with the mapped CCC ranging parameters.
- returns
- 0 on success, -EINVAL if the session or output pointer is NULL, slot count is insufficient, or N_Round is zero.
calls
ccc_session_n_round