|
openaliro
Aliro reader: UWB/CCC core and ESP32-S3/C5/C6 port
|
— generic base-session interface. More...
#include <cherry/cherry.h>#include <cherry/cherry_common.h>#include <stdbool.h>#include <stdint.h>Go to the source code of this file.
Functions | |
| void * | cherry_session_get_user_data (struct cherry_session *session) |
| Return the opaque client pointer stored at session creation. | |
| void | cherry_session_destroy (struct cherry_session *session) |
| Stop if needed, tear down, and release the session. | |
| enum cherry_err | cherry_session_start (struct cherry_session *session) |
| Request the session to start ranging. | |
| enum cherry_err | cherry_session_stop (struct cherry_session *session) |
| Request the session to stop ranging. | |
| 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. | |
| 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). | |
— generic base-session interface.
| void cherry_session_destroy | ( | struct cherry_session * | session | ) |
Stop if needed, tear down, and release the session.
Stop if needed, tear down, and release the session.
| session | Base session; null or invalid input is safely ignored. |
| void * cherry_session_get_user_data | ( | struct cherry_session * | session | ) |
Return the opaque client pointer stored at session creation.
Return the opaque client pointer stored at session creation.
| session | Base session. |
| 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.
Select the Tx/Rx antenna sets for the first ranging round.
| session | Base session. |
| tx_antenna_set | TX antenna set (ignored). |
| rx_antenna_set | RX antenna set (ignored). |
| enum cherry_err cherry_session_set_diagnostics | ( | struct cherry_session * | session, |
| struct cherry_common_diag_cfg | config, | ||
| bool | controlee_only | ||
| ) |
Enable/disable per-session diagnostics (config passed by value).
Enable/disable per-session diagnostics (config passed by value).
| enum cherry_err cherry_session_start | ( | struct cherry_session * | session | ) |
Request the session to start ranging.
Request the session to start ranging.
| session | Base session. |
| enum cherry_err cherry_session_stop | ( | struct cherry_session * | session | ) |
Request the session to stop ranging.
Request the session to stop ranging.
| session | Base session. |