Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_ | |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_ | |
| 7 | |
| 8 #include "device/bluetooth/bluetooth_export.h" | |
| 9 | |
| 10 // This file is for enums and small types common to several | |
| 11 // parts of bluetooth. | |
| 12 | |
| 13 namespace device { | |
| 14 | |
| 15 // Devices and adapters can support a number of transports, | |
| 16 // and bluetooth hosts can scan for devices based on the | |
| 17 // transports they support. | |
| 18 enum BluetoothTransport : uint8_t { | |
|
Eric Caruso
2016/06/15 22:32:10
As per offline discussion with ortuno@, using enum
| |
| 19 BLUETOOTH_TRANSPORT_INVALID = 0x00, | |
| 20 // Valid transports are given as a bitset. | |
| 21 BLUETOOTH_TRANSPORT_CLASSIC = 0x01, | |
| 22 BLUETOOTH_TRANSPORT_LE = 0x02, | |
| 23 BLUETOOTH_TRANSPORT_DUAL = | |
| 24 (BLUETOOTH_TRANSPORT_CLASSIC | BLUETOOTH_TRANSPORT_LE) | |
| 25 }; | |
| 26 | |
| 27 } // namespace device | |
| 28 | |
| 29 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_ | |
| OLD | NEW |