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 #pragma once 17 18 namespace cuttlefish { 19 20 // Constants representing a not known or not detectable value for different 21 // signal strength parameters. 22 constexpr int kRssiUnknownValue = 99; 23 constexpr int kBerUnknownValue = 99; 24 constexpr int kDbmUnknownValue = -1; 25 constexpr int kEcioUnknownValue = -1; 26 constexpr int kSnrUnknownValue = -1; 27 28 // Constants representing the range of values of different signal strength 29 // parameters. 30 constexpr auto kRssiRange = std::make_pair(4, 30); 31 constexpr auto kDbmRange = std::make_pair(-120, -4); 32 constexpr auto kRsrpRange = std::make_pair(-140, -44); 33 34 } // namespace cuttlefish 35