1#!/usr/bin/env python3
2#
3# Copyright (C) 2022 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License"); you may not
6# use this file except in compliance with the License. You may obtain a copy of
7# the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14# License for the specific language governing permissions and limitations under
15# the License.
16
17import enum
18
19
20class BleScanSettingsMatchNums(enum.IntEnum):
21    """Bluetooth Low Energy scan settings match nums"""
22    ONE = 1
23    FEW = 2
24    MAX = 3
25
26
27class BleAdvertiseSettingsTxPower(enum.IntEnum):
28    """Enum class for BLE advertise settings tx power."""
29    ULTRA_LOW = 0
30    LOW = 1
31    MEDIUM = 2
32    HIGH = 3
33
34
35class BleAdvertiseSettingsMode(enum.IntEnum):
36    """Enum class for BLE advertise settings mode."""
37    LOW_POWER = 0
38    BALANCED = 1
39    LOW_LATENCY = 2
40
41
42class BleScanSettingsModes(enum.IntEnum):
43    """Bluetooth Low Energy scan settings mode"""
44    OPPORTUNISTIC = -1
45    LOW_POWER = 0,
46    BALANCED = 1,
47    LOW_LATENCY = 2
48    AMBIENT_DISCOVERY = 3
49