mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge changes I6ec56c68,Idc44d73f,I9cd3e442,Iae490f19,I44dd28b0, ...
* changes: uwb(hal): Doc update to clarify country code payload of 00 Add Diagnostics Oid in HAL. Add new capability TLV and config TLV for supported diagnostics. Add new capability TLV for supported RSSI reporting uwb(hal): Add a new capability TLV for supported rng ntf thresholds uwb(hal): Add a new capability TLV for min ranging interval
This commit is contained in:
@@ -47,6 +47,7 @@ aidl_interface {
|
||||
|
||||
aidl_interface {
|
||||
name: "android.hardware.uwb.fira_android",
|
||||
owner: "google",
|
||||
vendor_available: true,
|
||||
srcs: ["android/hardware/uwb/fira_android/*.aidl"],
|
||||
stability: "vintf",
|
||||
|
||||
@@ -44,4 +44,8 @@ enum UwbVendorCapabilityTlvTypes {
|
||||
CCC_SUPPORTED_PULSE_SHAPE_COMBOS = 166,
|
||||
CCC_SUPPORTED_RAN_MULTIPLIER = 167,
|
||||
SUPPORTED_AOA_RESULT_REQ_ANTENNA_INTERLEAVING = 227,
|
||||
SUPPORTED_MIN_RANGING_INTERVAL_MS = 228,
|
||||
SUPPORTED_RANGE_DATA_NTF_CONFIG = 229,
|
||||
SUPPORTED_RSSI_REPORTING = 230,
|
||||
SUPPORTED_DIAGNOSTICS = 231,
|
||||
}
|
||||
|
||||
@@ -36,4 +36,5 @@ package android.hardware.uwb.fira_android;
|
||||
enum UwbVendorGidAndroidOids {
|
||||
ANDROID_GET_POWER_STATS = 0,
|
||||
ANDROID_SET_COUNTRY_CODE = 1,
|
||||
ANDROID_RANGE_DIAGNOSTICS = 2,
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -150,4 +150,33 @@ enum UwbVendorCapabilityTlvTypes {
|
||||
* 0 - Feature not supported.
|
||||
*/
|
||||
SUPPORTED_AOA_RESULT_REQ_ANTENNA_INTERLEAVING = 0xE3,
|
||||
|
||||
/**
|
||||
* 4 byte value to indicate supported min ranging interval in ms.
|
||||
*/
|
||||
SUPPORTED_MIN_RANGING_INTERVAL_MS = 0xE4,
|
||||
|
||||
/**
|
||||
* 4 byte bitmask to indicate the supported RANGE_DATA_NTF_CONFIG values
|
||||
*
|
||||
* Bitmask where each bit corresponds to values used in
|
||||
* RANGE_DATA_NTF_CONFIG in SET_APP_CFG_CMD
|
||||
*/
|
||||
SUPPORTED_RANGE_DATA_NTF_CONFIG = 0xE5,
|
||||
|
||||
/**
|
||||
* 1 byte bitmask to indicate the supported RSSI_REPORTING values
|
||||
* Values:
|
||||
* 1 - Feature supported.
|
||||
* 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,
|
||||
}
|
||||
|
||||
@@ -30,5 +30,11 @@ enum UwbVendorGidAndroidOids {
|
||||
ANDROID_GET_POWER_STATS = 0x0,
|
||||
// Used to set the current regulatory country code (determined usinag
|
||||
// SIM or hardcoded by OEM).
|
||||
// Country code is sent as a 2 byte value corresponding to ISO-3166 country code.
|
||||
// Note: "00" is used to indicate that the country code is unknown.
|
||||
ANDROID_SET_COUNTRY_CODE = 0x1,
|
||||
// Used by the notification to get UWB ranging diagnostics stats.
|
||||
// Supported only if the UwbVendorCapabilityTlvTypes.SUPPORTED_DIAGNOSTICS set
|
||||
// to 1.
|
||||
ANDROID_RANGE_DIAGNOSTICS = 0x2,
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user