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

— Aliro/CCC ranging seam: map an Aliro session's URSK + M1-M4 setup to ccc_ran_params. More...

#include <stdint.h>
#include "ccc_mac.h"
Include dependency graph for ccc_session.h:

Go to the source code of this file.

Data Structures

struct  ccc_ran_session
 An Aliro ranging session: the URSK + the M1-M4 setup parameters; the interface to the CCC MAC. More...
 

Macros

#define CCC_ALIRO_VENDOR_OUI   0x4A191Bu
 SP0 MHR Vendor OUI for Aliro ranging (CSA Company Id).
 

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: map an Aliro session's URSK + M1-M4 setup to ccc_ran_params.

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.