diff options
author | Ayush Jain <ayushjain@google.com> | 2023-05-08 20:06:38 +0000 |
---|---|---|
committer | Ayush Jain <ayushjain@google.com> | 2023-05-08 21:37:20 +0000 |
commit | 51cf7762ed2feabea4ba186164f339569e9b8ba5 (patch) | |
tree | bb8ad0acea3c3b07ce49c63a2664bf4c61fc168d /src/rust/uwb_uci_packets | |
parent | f9d9c4a4457183e1fef999aa352f609e0ca9bf4c (diff) | |
download | uwb-51cf7762ed2feabea4ba186164f339569e9b8ba5.tar.gz |
OwrAoa Measurements return standard status code.
CR-1037 replaces the usage of specific status code values in an OwrAoa
Ranging Measurement with the standard StatusCodes (and adds a new
STATUS_CODE_UNKNOWN value earlier used in OwrAoa status code).
Bug: 279974481
Test: libuwb_core_test libuwb_uci_packet_tests libuwb_uci_jni_rust_tests ServiceUwbTests FrameworkUwbTests
Change-Id: I61508181acadb7782536600470d231b3563cb8b2
Diffstat (limited to 'src/rust/uwb_uci_packets')
-rw-r--r-- | src/rust/uwb_uci_packets/uci_packets.pdl | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/rust/uwb_uci_packets/uci_packets.pdl b/src/rust/uwb_uci_packets/uci_packets.pdl index cf065d8..b774fb4 100644 --- a/src/rust/uwb_uci_packets/uci_packets.pdl +++ b/src/rust/uwb_uci_packets/uci_packets.pdl @@ -101,8 +101,9 @@ enum StatusCode : 8 { UCI_STATUS_UNKNOWN_OID = 0x08, UCI_STATUS_READ_ONLY = 0x09, UCI_STATUS_COMMAND_RETRY = 0x0A, - UCI_STATUS_NOT_APPLICABLE = 0x0B, - RFU_STATUS_CODE_RANGE_1 = 0x0C..0x10, + UCI_STATUS_UNKNOWN = 0x0B, + UCI_STATUS_NOT_APPLICABLE = 0x0C, + RFU_STATUS_CODE_RANGE_1 = 0x0D..0x10, // UWB Session Specific Status Codes UCI_STATUS_SESSION_NOT_EXIST = 0x11, @@ -149,13 +150,6 @@ enum StatusCode : 8 { VENDOR_SPECIFIC_STATUS_CODE_2 = 0xFF, } -// This needs a separate type as the Status code values in an OWR for AOA -// Measurement has different values. -enum OwrAoaStatusCode : 8 { - UCI_STATUS_SUCCESS = 0x00, - UCI_STATUS_INTER_FRAME_INTERVAL_TIMEOUT = 0x01, -} - // This needs a separate StatusCode as the Status code values in the DATA_RCV packet have // different values from the generic StatusCode above. enum DataRcvStatusCode : 8 { @@ -1050,7 +1044,7 @@ struct ExtendedAddressTwoWayRangingMeasurement { struct ShortAddressOwrAoaRangingMeasurement { mac_address: 16, - status: OwrAoaStatusCode, + status: StatusCode, nlos: 8, frame_sequence_number: 8, block_index: 16, @@ -1062,7 +1056,7 @@ struct ShortAddressOwrAoaRangingMeasurement { struct ExtendedAddressOwrAoaRangingMeasurement { mac_address: 64, - status: OwrAoaStatusCode, + status: StatusCode, nlos: 8, frame_sequence_number: 8, block_index: 16, |