| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 kPropertyNone = 0, | 44 kPropertyNone = 0, |
| 45 kPropertyBroadcast = 1 << 0, | 45 kPropertyBroadcast = 1 << 0, |
| 46 kPropertyRead = 1 << 1, | 46 kPropertyRead = 1 << 1, |
| 47 kPropertyWriteWithoutResponse = 1 << 2, | 47 kPropertyWriteWithoutResponse = 1 << 2, |
| 48 kPropertyWrite = 1 << 3, | 48 kPropertyWrite = 1 << 3, |
| 49 kPropertyNotify = 1 << 4, | 49 kPropertyNotify = 1 << 4, |
| 50 kPropertyIndicate = 1 << 5, | 50 kPropertyIndicate = 1 << 5, |
| 51 kPropertyAuthenticatedSignedWrites = 1 << 6, | 51 kPropertyAuthenticatedSignedWrites = 1 << 6, |
| 52 kPropertyExtendedProperties = 1 << 7, | 52 kPropertyExtendedProperties = 1 << 7, |
| 53 kPropertyReliableWrite = 1 << 8, | 53 kPropertyReliableWrite = 1 << 8, |
| 54 kPropertyWriteableAuxiliaries = 1 << 9 | 54 kPropertyWritableAuxiliaries = 1 << 9 |
| 55 }; | 55 }; |
| 56 typedef uint32 Properties; | 56 typedef uint32 Properties; |
| 57 | 57 |
| 58 // Values representing read, write, and encryption permissions for a | 58 // Values representing read, write, and encryption permissions for a |
| 59 // characteristic's value. While attribute permissions for all GATT | 59 // characteristic's value. While attribute permissions for all GATT |
| 60 // definitions have been set by the Bluetooth specification, characteristic | 60 // definitions have been set by the Bluetooth specification, characteristic |
| 61 // value permissions are left up to the higher-level profile. | 61 // value permissions are left up to the higher-level profile. |
| 62 // | 62 // |
| 63 // Attribute permissions are distinct from the characteristic properties. For | 63 // Attribute permissions are distinct from the characteristic properties. For |
| 64 // example, a characteristic may have the property |kPropertyRead| to make | 64 // example, a characteristic may have the property |kPropertyRead| to make |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 BluetoothGattCharacteristic(); | 183 BluetoothGattCharacteristic(); |
| 184 virtual ~BluetoothGattCharacteristic(); | 184 virtual ~BluetoothGattCharacteristic(); |
| 185 | 185 |
| 186 private: | 186 private: |
| 187 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristic); | 187 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristic); |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 } // namespace device | 190 } // namespace device |
| 191 | 191 |
| 192 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ | 192 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ |
| OLD | NEW |