openaliro
Aliro reader: UWB/CCC core and ESP32-S3/C5/C6 port
Loading...
Searching...
No Matches
ccc_session.c File Reference

— Aliro/CCC ranging seam implementation. More...

#include "ccc_session.h"
#include <errno.h>
Include dependency graph for ccc_session.c:

Functions

uint16_t ccc_session_n_round (const struct ccc_ran_session *s)
 Rounds per ranging block, from N_RAN_S and the slot parameters (0 if the denominator is 0).
 
int ccc_session_to_ran_params (const struct ccc_ran_session *s, struct ccc_ran_params *out)
 Map an Aliro session onto the CCC MAC's ranging-schedule parameters.
 

Detailed Description

— Aliro/CCC ranging seam implementation.

See ccc_session.h.

Function Documentation

◆ ccc_session_to_ran_params()

int ccc_session_to_ran_params ( const struct ccc_ran_session s,
struct ccc_ran_params out 
)

Map an Aliro session onto the CCC MAC's ranging-schedule parameters.

Parameters
sAliro session configuration.
outFilled 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.