bt_common/uuids/
descriptors.rs

1// Copyright 2023 The Fuchsia 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
5use std::collections::HashMap;
6
7use super::{AssignedUuid, Uuid};
8
9#[rustfmt::skip]
10// Generated with a magic regexp: %s/ - uuid: \(......\)\n   name: \(.\+\)\n   id: \(.\+\)\n/(\1, "\2", "\3"),\r/g
11// With a tweak for "CO2 Concentration"
12
13#[rustfmt::skip]
14lazy_static! {
15    pub static ref CHARACTERISTIC_UUIDS: HashMap<Uuid, AssignedUuid> = assigned_uuid_map!(
16          (0x2900, "Characteristic Extended Properties", "org.bluetooth.descriptor.gatt.characteristic_extended_properties"),
17          (0x2901, "Characteristic User Description", "org.bluetooth.descriptor.gatt.characteristic_user_description"),
18          (0x2902, "Client Characteristic Configuration", "org.bluetooth.descriptor.gatt.client_characteristic_configuration"),
19          (0x2903, "Server Characteristic Configuration", "org.bluetooth.descriptor.gatt.server_characteristic_configuration"),
20          (0x2904, "Characteristic Presentation Format", "org.bluetooth.descriptor.gatt.characteristic_presentation_format"),
21          (0x2905, "Characteristic Aggregate Format", "org.bluetooth.descriptor.gatt.characteristic_aggregate_format"),
22          (0x2906, "Valid Range", "org.bluetooth.descriptor.valid_range"),
23          (0x2907, "External Report Reference", "org.bluetooth.descriptor.external_report_reference"),
24          (0x2908, "Report Reference", "org.bluetooth.descriptor.report_reference"),
25          (0x2909, "Number of Digitals", "org.bluetooth.descriptor.number_of_digitals"),
26          (0x290A, "Value Trigger Setting", "org.bluetooth.descriptor.value_trigger_setting"),
27          (0x290B, "Environmental Sensing Configuration", "org.bluetooth.descriptor.es_configuration"),
28          (0x290C, "Environmental Sensing Measurement", "org.bluetooth.descriptor.es_measurement"),
29          (0x290D, "Environmental Sensing Trigger Setting", "org.bluetooth.descriptor.es_trigger_setting"),
30          (0x290E, "Time Trigger Setting", "org.bluetooth.descriptor.time_trigger_setting"),
31          (0x290F, "Complete BR-EDR Transport Block Data", "org.bluetooth.descriptor.complete_br_edr_transport_block_data"),
32          (0x2910, "Observation Schedule", "org.bluetooth.descriptor.observation_schedule"),
33          (0x2911, "Valid Range and Accuracy", "org.bluetooth.descriptor.valid_range_accuracy"),
34    );
35}