27#define ALIRO_DEV_UWB_MAX_CONFIGS 8
28#define ALIRO_DEV_UWB_MAX_COMBOS 8
32 uint16_t config_ids[ALIRO_DEV_UWB_MAX_CONFIGS];
34 uint8_t pulse_shape_combos[ALIRO_DEV_UWB_MAX_COMBOS];
36 uint8_t channel_bitmask;
42 uint8_t ran_multiplier;
43 uint8_t chaps_per_slot;
44 uint8_t num_responders;
45 uint8_t slots_per_round;
46 uint32_t sync_code_index_bitmask;
47 uint8_t hopping_config_bitmask;
54 uint8_t pulse_shape_combo;
55 uint8_t channel_bitmask;
56 uint8_t ran_multiplier;
58 uint32_t sync_code_index_bitmask;
59 uint8_t hopping_config_bitmask;
66 uint32_t hop_mode_key;
67 uint8_t sync_code_index;
struct aliro_uwb_message * aliro_dev_uwb_build_m4(const struct aliro_dev_uwb_m4_params *p)
Build an M4 UWB message from STS index, UWB time, hop mode key, and sync code index.
Definition aliro_device_uwb.c:197
int aliro_dev_uwb_parse_m1(const uint8_t *msg, size_t len, struct aliro_dev_uwb_m1 *out)
Parse an inbound M1 / M3 message ([proto][id][len_be16][attrs]) into the structs above.
Definition aliro_device_uwb.c:20
void aliro_dev_uwb_select_m2(const struct aliro_dev_uwb_m1 *m1, struct aliro_dev_uwb_m2_params *out)
Pick M2 selections from a parsed M1: echo the reader's first config, pulse shape and channel,...
Definition aliro_device_uwb.c:139
int aliro_dev_uwb_parse_m3(const uint8_t *msg, size_t len, struct aliro_dev_uwb_m3 *out)
Parse an M3 UWB message: extract and validate ran multiplier, chaps per slot, number of responders,...
Definition aliro_device_uwb.c:78
struct aliro_uwb_message * aliro_dev_uwb_build_m2(const struct aliro_dev_uwb_m2_params *p)
Build an M2 / M4 message.
Definition aliro_device_uwb.c:151
— UWB ranging-service framing constants.
Ranging capabilities the reader offered in M1 (reader -> device).
Definition aliro_device_uwb.h:31
Device selections carried in M2 (device -> reader).
Definition aliro_device_uwb.h:52
Ranging parameters the reader committed in M3 (reader -> device).
Definition aliro_device_uwb.h:41
Device selections carried in M4 (device -> reader).
Definition aliro_device_uwb.h:63
Framed Aliro BLE message with 4-byte header followed by TLV payload.
Definition aliro_uwb_session.h:24