Add CS mode 2 and mode 3 param for Channel Sounding HAL

- add toneExtentionAntennaIndex in StepTonePct aidl

Bug: 310941161
Test: m android.hardware.bluetooth.ranging-update-api

Change-Id: I9e115480d78a26c8996d5bbd0b482bd173620663
This commit is contained in:
Venkata Jagadeesh Garaga
2023-12-13 12:38:32 +05:30
committed by Roshan Pius
parent 9aaa752c3e
commit 9c16dd7cce
2 changed files with 26 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ package android.hardware.bluetooth.ranging;
parcelable StepTonePct {
List<android.hardware.bluetooth.ranging.ComplexNumber> tonePcts;
byte[] toneQualityIndicator;
byte toneExtensionAntennaIndex;
const int TONE_QUALITY_GOOD = 0;
const int TONE_QUALITY_MEDIUM = 1;
const int TONE_QUALITY_LOW = 2;
@@ -44,4 +45,9 @@ parcelable StepTonePct {
const int EXTENSION_SLOT_TONE_NOT_EXPECTED_TO_BE_PRESENT = 1;
const int EXTENSION_SLOT_TONE_EXPECTED_TO_BE_PRESENT = 2;
const int EXTENSION_SLOT_SHIFT_AMOUNT = 4;
const byte TONE_EXTENSION_ANTENNA_1 = 0x0;
const byte TONE_EXTENSION_ANTENNA_2 = 0x1;
const byte TONE_EXTENSION_ANTENNA_3 = 0x2;
const byte TONE_EXTENSION_ANTENNA_4 = 0x3;
const byte TONE_EXTENSION_UNUSED = 0xFFu8;
}

View File

@@ -23,6 +23,10 @@ import android.hardware.bluetooth.ranging.ComplexNumber;
*/
@VintfStability
parcelable StepTonePct {
/**
* PCT measured from mode-2 or mode-3 steps
* (in ascending order of antenna position with tone extension data at the end).
*/
List<ComplexNumber> tonePcts;
const int TONE_QUALITY_GOOD = 0;
const int TONE_QUALITY_MEDIUM = 1;
@@ -52,4 +56,20 @@ parcelable StepTonePct {
* See: https://bluetooth.com/specifications/specs/channel-sounding-cr-pr/
*/
byte[] toneQualityIndicator;
const byte TONE_EXTENSION_ANTENNA_1 = 0x0;
const byte TONE_EXTENSION_ANTENNA_2 = 0x1;
const byte TONE_EXTENSION_ANTENNA_3 = 0x2;
const byte TONE_EXTENSION_ANTENNA_4 = 0x3;
const byte TONE_EXTENSION_UNUSED = 0xFFu8;
/**
* Tone Extension Antenna Index indicates the Antenna position used in tone extension slot
*
* 0x00 = A1
* 0x01 = A2
* 0x02 = A3
* 0x03 = A4
* 0xFF = Tone extension not used
*/
byte toneExtensionAntennaIndex;
}