openaliro
Aliro reader: UWB/CCC core and ESP32-S3/C5/C6 port
Loading...
Searching...
No Matches
cherry_session.h
Go to the documentation of this file.
1
3#pragma once
4
5#include <cherry/cherry.h>
7
8#include <stdbool.h>
9#include <stdint.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
16struct cherry_session;
17
19void *cherry_session_get_user_data(struct cherry_session *session);
20
22void cherry_session_destroy(struct cherry_session *session);
23
26
29
31enum cherry_err cherry_session_set_antennas(struct cherry_session *session, uint8_t tx_antenna_set,
32 uint8_t rx_antenna_set);
33
36 struct cherry_common_diag_cfg config,
37 bool enable_fallback);
38
39#ifdef __cplusplus
40}
41#endif
— Cherry core (context + device-capabilities) interface.
cherry_err
Status codes returned across the Cherry / CCC seam.
Definition cherry.h:21
— diagnostics config struct and report forward decl.
enum cherry_err cherry_session_set_antennas(struct cherry_session *session, uint8_t tx_antenna_set, uint8_t rx_antenna_set)
Select the Tx/Rx antenna sets for the first ranging round.
Definition cherry_ccc_shim.c:408
enum cherry_err cherry_session_set_diagnostics(struct cherry_session *session, struct cherry_common_diag_cfg config, bool enable_fallback)
Enable/disable per-session diagnostics (config passed by value).
Definition cherry_ccc_shim.c:420
void cherry_session_destroy(struct cherry_session *session)
Stop if needed, tear down, and release the session.
Definition cherry_ccc_shim.c:204
void * cherry_session_get_user_data(struct cherry_session *session)
Return the opaque client pointer stored at session creation.
Definition cherry_ccc_shim.c:195
enum cherry_err cherry_session_start(struct cherry_session *session)
Request the session to start ranging.
Definition cherry_ccc_shim.c:227
enum cherry_err cherry_session_stop(struct cherry_session *session)
Request the session to stop ranging.
Definition cherry_ccc_shim.c:308
Per-session diagnostics selection flags and CIR window parameters, passed by value.
Definition cherry_common.h:15
Base session object; first member of cherry_ccc_session for up-casting.
Definition cherry_ccc_shim.c:37