Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d25b825 authored by ziyiw's avatar ziyiw
Browse files

Add new capability TLV and config TLV for supported diagnostics.

Test: Compile
Bug: 236969605
Change-Id: I9cd3e442857cf8691420f7d3f3386f1aa45a78a2
parent 42d1a986
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -47,4 +47,5 @@ enum UwbVendorCapabilityTlvTypes {
  SUPPORTED_MIN_RANGING_INTERVAL_MS = 228,
  SUPPORTED_RANGE_DATA_NTF_CONFIG = 229,
  SUPPORTED_RSSI_REPORTING = 230,
  SUPPORTED_DIAGNOSTICS = 231,
}
+2 −0
Original line number Diff line number Diff line
@@ -43,4 +43,6 @@ enum UwbVendorSessionAppConfigTlvTypes {
  NB_OF_RANGE_MEASUREMENTS = 227,
  NB_OF_AZIMUTH_MEASUREMENTS = 228,
  NB_OF_ELEVATION_MEASUREMENTS = 229,
  ENABLE_DIAGNOSTICS = 232,
  DIAGRAMS_FRAME_REPORTS_FIELDS = 233,
}
+8 −0
Original line number Diff line number Diff line
@@ -171,4 +171,12 @@ enum UwbVendorCapabilityTlvTypes {
     * 0 - Feature not supported.
     */
    SUPPORTED_RSSI_REPORTING = 0xE6,

    /**
     * 1 byte value to indicate support for diagnostics feature.
     * Values:
     *  1 - Feature supported.
     *  0 - Feature not supported.
     */
    SUPPORTED_DIAGNOSTICS = 0xE7,
}
+19 −0
Original line number Diff line number Diff line
@@ -66,4 +66,23 @@ enum UwbVendorSessionAppConfigTlvTypes {
    NB_OF_AZIMUTH_MEASUREMENTS = 0xE4,
    /** 1 byte data */
    NB_OF_ELEVATION_MEASUREMENTS = 0xE5,

    /**
     * Supported only if the UwbVendorCapabilityTlvTypes
     * .SUPPORTED_DIAGNOSTICS set to 1.
     */
    /**
     * 1 byte data
     * 1 - Enable,
     * 0 - Disable
     */
    ENABLE_DIAGNOSTICS = 0xE8,
    /**
     * 1 byte bitmask
     * b0: Activate RSSIs field,
     * b1: Activate AoAs field,
     * b2: Activate CIRs field,
     * b3 - b7: RFU
     */
    DIAGRAMS_FRAME_REPORTS_FIELDS = 0xE9,
}