|
openaliro
Aliro reader: UWB/CCC core and ESP32-S3/C5/C6 port
|
— private context types and shared helpers. More...
#include <aliro_uwb_adapter/aliro_uwb_adapter.h>#include <aliro_uwb_adapter/aliro_uwb_session.h>#include <cherry/cherry.h>#include <cherry/cherry_ccc.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | aliro_uwb_adapter |
| Session-independent reader state shared across all ranging sessions for an Aliro UWB adapter. More... | |
| struct | aliro_uwb_session |
| Per-approach ranging-setup session record holding the CCC state machine and derived keys for one Aliro exchange. More... | |
Enumerations | |
| enum | aliro_uwb_session_state |
| BLE-handshake state of a session. | |
Functions | |
| enum aliro_uwb_err | cherry_err_to_aliro (enum cherry_err err) |
| Map a CCC error code to its Aliro UWB equivalent, treating unknown errors as internal failures. | |
| enum aliro_uwb_err | aliro_uwb_session_init (struct aliro_uwb_session *session) |
| Initialize a session by creating and configuring a CCC Aliro responder, setting URSK, protocol version, antennas, and diagnostics, then starting the session. | |
| enum aliro_uwb_err | aliro_uwb_session_stop (struct aliro_uwb_session *session) |
| Stop an active CCC session, transitioning to SUSPENDED state. | |
| enum aliro_uwb_err | aliro_uwb_session_start (struct aliro_uwb_session *session) |
| Start ranging for a per-approach session. | |
— private context types and shared helpers.
| enum aliro_uwb_err aliro_uwb_session_init | ( | struct aliro_uwb_session * | session | ) |
Initialize a session by creating and configuring a CCC Aliro responder, setting URSK, protocol version, antennas, and diagnostics, then starting the session.
On any error, tears down the session and returns the mapped error code.
| session | Session to initialize. |
ALIRO_UWB_ERR_NONE on success, ALIRO_UWB_ERR_INVALID_PARAMETER if session is NULL, or the mapped CCC error on failure. | enum aliro_uwb_err aliro_uwb_session_start | ( | struct aliro_uwb_session * | session | ) |
Start ranging for a per-approach session.
| session | The per-approach ranging-setup session to start. |
Start ranging for a per-approach session.
On error, tears down the session and returns the mapped error code. the mapped CCC error on failure.
| enum aliro_uwb_err aliro_uwb_session_stop | ( | struct aliro_uwb_session * | session | ) |
Stop an active CCC session, transitioning to SUSPENDED state.
On error, tears down the session and returns the mapped error code.
| session | Session to stop. |
ALIRO_UWB_ERR_NONE on success, ALIRO_UWB_ERR_INVALID_PARAMETER if session is NULL, or the mapped CCC error on failure. | enum aliro_uwb_err cherry_err_to_aliro | ( | enum cherry_err | err | ) |
Map a CCC error code to its Aliro UWB equivalent, treating unknown errors as internal failures.
| err | CCC error code to translate. |
enum aliro_uwb_err value, or ALIRO_UWB_ERR_INTERNAL if unrecognized.