1/* 2 * Copyright (C) 2021 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto2"; 18package android.uwb; 19 20option java_outer_classname = "UwbProtoEnums"; 21option java_multiple_files = true; 22 23// UWB profiles 24enum Profile { 25 UNKNOWN = 0; 26 FIRA = 1; 27 CCC = 2; 28 CUSTOMIZED = 3; 29} 30// UWB scrambled timestamp sequence (STS) type 31enum Sts { 32 UNKNOWN_STS = 0; 33 STATIC = 1; 34 DYNAMIC = 2; 35 PROVISIONED = 3; 36} 37 38// UWB session status codes 39enum Status { 40 STATUS_UNKNOWN = 0; 41 SUCCESS = 1; 42 GENERAL_FAILURE = 2; 43 BAD_PARAMS = 3; 44 REJECTED = 4; 45 SESSION_DUPLICATE = 5; 46 SESSION_EXCEEDED = 6; 47 SERVICE_NOT_FOUND = 7; 48 PROVISION_FAILED = 8; 49} 50 51// UWB ranging session status codes 52enum RangingStatus { 53 RANGING_STATUS_UNKNOWN = 0; 54 RANGING_SUCCESS = 1; 55 RANGING_GENERAL_FAILURE = 2; 56 RANGING_REJECTED = 3; 57 RANGING_BAD_PARAMS = 4; 58 TX_FAILED = 5; 59 RX_PHY_DEC_FAILED = 6; 60 RX_PHY_TOA_FAILED = 7; 61 RX_PHY_STS_FAILED = 8; 62 RX_MAC_DEC_FAILED = 9; 63 RX_MAC_IE_DEC_FAILED = 10; 64 RX_MAC_IE_MISSING = 11; 65} 66 67// UWB session duration buckets 68enum DurationBucket { 69 DURATION_UNKNOWN = 0; 70 WITHIN_ONE_SEC = 1; 71 ONE_TO_TEN_SEC = 2; 72 TEN_SEC_TO_ONE_MIN = 3; 73 ONE_TO_TEN_MIN = 4; 74 TEN_MIN_TO_ONE_HOUR = 5; 75 MORE_THAN_ONE_HOUR = 6; 76} 77 78// UWB count buckets 79enum CountBucket { 80 COUNT_UNKNOWN = 0; 81 ZERO = 1; 82 ONE_TO_FIVE = 2; 83 FIVE_TO_TWENTY = 3; 84 TWENTY_TO_ONE_HUNDRED = 4; 85 ONE_HUNDRED_TO_FIVE_HUNDRED = 5; 86 MORE_THAN_FIVE_HUNDRED = 6; 87} 88 89// Non-Line-of-Sight indication 90enum Nlos { 91 NLOS_UNKNOWN = 0; 92 NLOS = 1; 93 LOS = 2; 94} 95 96// UWB ranging measurement types 97enum RangingType { 98 TYPE_UNKNOWN = 0; 99 ONE_WAY = 1; 100 TWO_WAY = 2; 101 DL_TDOA = 3; 102 OWR_AOA = 4; 103}