Add CS mode 0 params for Channel Sounding HAL

- add frequencyCompensation in ChannelSoudingRawData
 - add measuredFreqOffset in ChannelSoundingSingleSideData

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

Change-Id: I88444b76b136c5b45d4298692d5734b44941c5a3
This commit is contained in:
Venkata Jagadeesh Garaga
2023-12-13 12:37:40 +05:30
committed by Roshan Pius
parent 0d3349c717
commit 9aaa752c3e
4 changed files with 11 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ package android.hardware.bluetooth.ranging;
@VintfStability
parcelable ChannelSoudingRawData {
int procedureCounter;
int[] frequencyCompensation;
boolean aborted;
android.hardware.bluetooth.ranging.ChannelSoundingSingleSideData initiatorData;
android.hardware.bluetooth.ranging.ChannelSoundingSingleSideData reflectorData;

View File

@@ -38,6 +38,7 @@ parcelable ChannelSoundingSingleSideData {
@nullable byte[] packetQuality;
@nullable byte[] packetRssiDbm;
@nullable android.hardware.bluetooth.ranging.Nadm[] packetNadm;
@nullable int[] measuredFreqOffset;
@nullable List<android.hardware.bluetooth.ranging.ComplexNumber> packetPct1;
@nullable List<android.hardware.bluetooth.ranging.ComplexNumber> packetPct2;
byte referencePowerDbm;

View File

@@ -28,6 +28,11 @@ parcelable ChannelSoudingRawData {
* Procedure counter of the CS procedure.
*/
int procedureCounter;
/**
* Frequency Compensation indicates fractional frequency
* offset (FFO) value of initiator, in 0.01ppm
*/
int[] frequencyCompensation;
/**
* Indicate if the procedure aborted.
*/

View File

@@ -41,6 +41,10 @@ parcelable ChannelSoundingSingleSideData {
* Packet NADM of mode-1 or mode-3 step data for attack detection.
*/
@nullable Nadm[] packetNadm;
/**
* Measured Frequency Offset from mode 0, relative to the remote device, in 0.01ppm
*/
@nullable int[] measuredFreqOffset;
/**
* Packet_PCT1 or packet_PCT2 of mode-1 or mode-3, if sounding sequence is used and sounding
* phase-based ranging is supported.