modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h
asxeem/openaliro
Module

aliro_uwb_msg_spec.h

UWB ranging-service framing constants.

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h

Overview

UWB ranging-service framing constants.

used by aliro_uwb_msg.c aliro_uwb_msg_builder.h aliro_uwb_msg_parser.h aliro_uwb_session.c

API

##define ALIRO_HEADER_LENGTH 4

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:8

Framing: protocol type + message id + 2-byte big-endian payload length.

##define ALIRO_ATTRIBUTE_HEADER_LENGTH 2

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:10

Per-attribute framing: attribute id + attribute length.

Cenum aliro_uwb_message_protocol_type

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:13

Protocol type field (header byte 0).

Cenum aliro_uwb_message_ranging_service

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:22

Message id field for the UWB Ranging Service protocol.

Cenum aliro_uwb_ranging_service_attribute

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:34

##define ALIRO_UWB_RANGING_SERVICE_STATUS_ACCEPT 0

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:57

Status attribute values (suspend/resume responses).

##define ALIRO_UWB_RANGING_SERVICE_STATUS_REJECT 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:58

##define ALIRO_UWB_RANGING_SERVICE_STATUS_UNKNOWN 0xFF

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:59

Cenum aliro_uwb_message_notification

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:62

Message id field for the Notification protocol.

##define ALIRO_UWB_NOTIFICATION_ATTR_EVENT_BUSY_LENGTH 0

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:72

##define ALIRO_UWB_NOTIFICATION_ATTR_EVENT_GENERAL_ERROR_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:73

Cenum aliro_uwb_message_notification_event_attribute

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:76

Attribute ids inside an Event notification.

##define ALIRO_UWB_NOTIFICATION_GENERAL_ERROR_UNKNOWN 0

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:83

General-error notification codes.

##define ALIRO_UWB_NOTIFICATION_GENERAL_ERROR_RESOURCE_UNAVAILABLE 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:84

##define ALIRO_UWB_NOTIFICATION_GENERAL_ERROR_WRONG_PARAMS 2

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:85

##define ALIRO_UWB_NOTIFICATION_GENERAL_ERROR_URSK_UNAVAILABLE 3

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:86

Cenum aliro_uwb_message_notification_ranging_attribute

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:89

Attribute ids inside a Ranging notification.

##define ALIRO_UWB_RANGING_SERVICE_ATTR_CONFIGURATION_IDENTIFIER_LENGTH 2

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:99

##define ALIRO_UWB_RANGING_SERVICE_ATTR_PULSE_SHAPE_COMBO_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:100

##define ALIRO_UWB_RANGING_SERVICE_ATTR_SESSION_IDENTIFIER_LENGTH 4

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:101

##define ALIRO_UWB_RANGING_SERVICE_ATTR_CHANNEL_BITMASK_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:102

##define ALIRO_UWB_RANGING_SERVICE_ATTR_RAN_MULTIPLIER_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:103

##define ALIRO_UWB_RANGING_SERVICE_ATTR_SLOT_BITMASK_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:104

##define ALIRO_UWB_RANGING_SERVICE_ATTR_SYNC_CODE_INDEX_BITMASK_LENGTH 4

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:105

##define ALIRO_UWB_RANGING_SERVICE_ATTR_SYNC_CODE_INDEX_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:106

##define ALIRO_UWB_RANGING_SERVICE_ATTR_HOPPING_CONFIGURATION_BITMASK_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:107

##define ALIRO_UWB_RANGING_SERVICE_ATTR_NUMBER_CHAPS_PER_SLOT_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:108

##define ALIRO_UWB_RANGING_SERVICE_ATTR_NUMBER_RESPONDERS_NODES_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:109

##define ALIRO_UWB_RANGING_SERVICE_ATTR_NUMBER_SLOTS_PER_ROUND_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:110

##define ALIRO_UWB_RANGING_SERVICE_ATTR_STS_INDEX0_LENGTH 4

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:111

##define ALIRO_UWB_RANGING_SERVICE_ATTR_UWB_TIME0_LENGTH 8

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:112

##define ALIRO_UWB_RANGING_SERVICE_ATTR_HOP_MODE_KEY_LENGTH 4

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:113

##define ALIRO_UWB_RANGING_SERVICE_ATTR_MAC_MODE_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:114

##define ALIRO_UWB_RANGING_SERVICE_ATTR_VENDOR_SPECIFIC_OUI_CID_LENGTH 3

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:115

##define ALIRO_UWB_RANGING_SERVICE_ATTR_STATUS_LENGTH 1

modules/woz_uwb/src/aliro/aliro_uwb_msg_spec.h:116