Debian Codegraph @

known_uuid.go

raw symbols SCIP
1 package gatt
2
3 // A dictionary of known service names and type (keyed by service uuid)
4 var knownServices = map[string]struct{ Name, Type string }{
5 "1800": {Name: "Generic Access", Type: "org.bluetooth.service.generic_access"},
6 "1801": {Name: "Generic Attribute", Type: "org.bluetooth.service.generic_attribute"},
7 "1802": {Name: "Immediate Alert", Type: "org.bluetooth.service.immediate_alert"},
8 "1803": {Name: "Link Loss", Type: "org.bluetooth.service.link_loss"},
9 "1804": {Name: "Tx Power", Type: "org.bluetooth.service.tx_power"},
10 "1805": {Name: "Current Time Service", Type: "org.bluetooth.service.current_time"},
11 "1806": {Name: "Reference Time Update Service", Type: "org.bluetooth.service.reference_time_update"},
12 "1807": {Name: "Next DST Change Service", Type: "org.bluetooth.service.next_dst_change"},
13 "1808": {Name: "Glucose", Type: "org.bluetooth.service.glucose"},
14 "1809": {Name: "Health Thermometer", Type: "org.bluetooth.service.health_thermometer"},
15 "180a": {Name: "Device Information", Type: "org.bluetooth.service.device_information"},
16 "180d": {Name: "Heart Rate", Type: "org.bluetooth.service.heart_rate"},
17 "180e": {Name: "Phone Alert Status Service", Type: "org.bluetooth.service.phone_alert_service"},
18 "180f": {Name: "Battery Service", Type: "org.bluetooth.service.battery_service"},
19 "1810": {Name: "Blood Pressure", Type: "org.bluetooth.service.blood_pressuer"},
20 "1811": {Name: "Alert Notification Service", Type: "org.bluetooth.service.alert_notification"},
21 "1812": {Name: "Human Interface Device", Type: "org.bluetooth.service.human_interface_device"},
22 "1813": {Name: "Scan Parameters", Type: "org.bluetooth.service.scan_parameters"},
23 "1814": {Name: "Running Speed and Cadence", Type: "org.bluetooth.service.running_speed_and_cadence"},
24 "1815": {Name: "Cycling Speed and Cadence", Type: "org.bluetooth.service.cycling_speed_and_cadence"},
25 }
26
27 // A dictionary of known descriptor names and type (keyed by attribute uuid)
28 var knownAttributes = map[string]struct{ Name, Type string }{
29 "2800": {Name: "Primary Service", Type: "org.bluetooth.attribute.gatt.primary_service_declaration"},
30 "2801": {Name: "Secondary Service", Type: "org.bluetooth.attribute.gatt.secondary_service_declaration"},
31 "2802": {Name: "Include", Type: "org.bluetooth.attribute.gatt.include_declaration"},
32 "2803": {Name: "Characteristic", Type: "org.bluetooth.attribute.gatt.characteristic_declaration"},
33 }
34
35 // A dictionary of known descriptor names and type (keyed by descriptor uuid)
36 var knownDescriptors = map[string]struct{ Name, Type string }{
37 "2900": {Name: "Characteristic Extended Properties", Type: "org.bluetooth.descriptor.gatt.characteristic_extended_properties"},
38 "2901": {Name: "Characteristic User Description", Type: "org.bluetooth.descriptor.gatt.characteristic_user_description"},
39 "2902": {Name: "Client Characteristic Configuration", Type: "org.bluetooth.descriptor.gatt.client_characteristic_configuration"},
40 "2903": {Name: "Server Characteristic Configuration", Type: "org.bluetooth.descriptor.gatt.server_characteristic_configuration"},
41 "2904": {Name: "Characteristic Presentation Format", Type: "org.bluetooth.descriptor.gatt.characteristic_presentation_format"},
42 "2905": {Name: "Characteristic Aggregate Format", Type: "org.bluetooth.descriptor.gatt.characteristic_aggregate_format"},
43 "2906": {Name: "Valid Range", Type: "org.bluetooth.descriptor.valid_range"},
44 "2907": {Name: "External Report Reference", Type: "org.bluetooth.descriptor.external_report_reference"},
45 "2908": {Name: "Report Reference", Type: "org.bluetooth.descriptor.report_reference"},
46 }
47
48 // A dictionary of known characteristic names and type (keyed by characteristic uuid)
49 var knownCharacteristics = map[string]struct{ Name, Type string }{
50 "2a00": {Name: "Device Name", Type: "org.bluetooth.characteristic.gap.device_name"},
51 "2a01": {Name: "Appearance", Type: "org.bluetooth.characteristic.gap.appearance"},
52 "2a02": {Name: "Peripheral Privacy Flag", Type: "org.bluetooth.characteristic.gap.peripheral_privacy_flag"},
53 "2a03": {Name: "Reconnection Address", Type: "org.bluetooth.characteristic.gap.reconnection_address"},
54 "2a04": {Name: "Peripheral Preferred Connection Parameters", Type: "org.bluetooth.characteristic.gap.peripheral_preferred_connection_parameters"},
55 "2a05": {Name: "Service Changed", Type: "org.bluetooth.characteristic.gatt.service_changed"},
56 "2a06": {Name: "Alert Level", Type: "org.bluetooth.characteristic.alert_level"},
57 "2a07": {Name: "Tx Power Level", Type: "org.bluetooth.characteristic.tx_power_level"},
58 "2a08": {Name: "Date Time", Type: "org.bluetooth.characteristic.date_time"},
59 "2a09": {Name: "Day of Week", Type: "org.bluetooth.characteristic.day_of_week"},
60 "2a0a": {Name: "Day Date Time", Type: "org.bluetooth.characteristic.day_date_time"},
61 "2a0c": {Name: "Exact Time 256", Type: "org.bluetooth.characteristic.exact_time_256"},
62 "2a0d": {Name: "DST Offset", Type: "org.bluetooth.characteristic.dst_offset"},
63 "2a0e": {Name: "Time Zone", Type: "org.bluetooth.characteristic.time_zone"},
64 "2a0f": {Name: "Local Time Information", Type: "org.bluetooth.characteristic.local_time_information"},
65 "2a11": {Name: "Time with DST", Type: "org.bluetooth.characteristic.time_with_dst"},
66 "2a12": {Name: "Time Accuracy", Type: "org.bluetooth.characteristic.time_accuracy"},
67 "2a13": {Name: "Time Source", Type: "org.bluetooth.characteristic.time_source"},
68 "2a14": {Name: "Reference Time Information", Type: "org.bluetooth.characteristic.reference_time_information"},
69 "2a16": {Name: "Time Update Control Point", Type: "org.bluetooth.characteristic.time_update_control_point"},
70 "2a17": {Name: "Time Update State", Type: "org.bluetooth.characteristic.time_update_state"},
71 "2a18": {Name: "Glucose Measurement", Type: "org.bluetooth.characteristic.glucose_measurement"},
72 "2a19": {Name: "Battery Level", Type: "org.bluetooth.characteristic.battery_level"},
73 "2a1c": {Name: "Temperature Measurement", Type: "org.bluetooth.characteristic.temperature_measurement"},
74 "2a1d": {Name: "Temperature Type", Type: "org.bluetooth.characteristic.temperature_type"},
75 "2a1e": {Name: "Intermediate Temperature", Type: "org.bluetooth.characteristic.intermediate_temperature"},
76 "2a21": {Name: "Measurement Interval", Type: "org.bluetooth.characteristic.measurement_interval"},
77 "2a22": {Name: "Boot Keyboard Input Report", Type: "org.bluetooth.characteristic.boot_keyboard_input_report"},
78 "2a23": {Name: "System ID", Type: "org.bluetooth.characteristic.system_id"},
79 "2a24": {Name: "Model Number String", Type: "org.bluetooth.characteristic.model_number_string"},
80 "2a25": {Name: "Serial Number String", Type: "org.bluetooth.characteristic.serial_number_string"},
81 "2a26": {Name: "Firmware Revision String", Type: "org.bluetooth.characteristic.firmware_revision_string"},
82 "2a27": {Name: "Hardware Revision String", Type: "org.bluetooth.characteristic.hardware_revision_string"},
83 "2a28": {Name: "Software Revision String", Type: "org.bluetooth.characteristic.software_revision_string"},
84 "2a29": {Name: "Manufacturer Name String", Type: "org.bluetooth.characteristic.manufacturer_name_string"},
85 "2a2a": {Name: "IEEE 11073-20601 Regulatory Certification Data List", Type: "org.bluetooth.characteristic.ieee_11073-20601_regulatory_certification_data_list"},
86 "2a2b": {Name: "Current Time", Type: "org.bluetooth.characteristic.current_time"},
87 "2a31": {Name: "Scan Refresh", Type: "org.bluetooth.characteristic.scan_refresh"},
88 "2a32": {Name: "Boot Keyboard Output Report", Type: "org.bluetooth.characteristic.boot_keyboard_output_report"},
89 "2a33": {Name: "Boot Mouse Input Report", Type: "org.bluetooth.characteristic.boot_mouse_input_report"},
90 "2a34": {Name: "Glucose Measurement Context", Type: "org.bluetooth.characteristic.glucose_measurement_context"},
91 "2a35": {Name: "Blood Pressure Measurement", Type: "org.bluetooth.characteristic.blood_pressure_measurement"},
92 "2a36": {Name: "Intermediate Cuff Pressure", Type: "org.bluetooth.characteristic.intermediate_blood_pressure"},
93 "2a37": {Name: "Heart Rate Measurement", Type: "org.bluetooth.characteristic.heart_rate_measurement"},
94 "2a38": {Name: "Body Sensor Location", Type: "org.bluetooth.characteristic.body_sensor_location"},
95 "2a39": {Name: "Heart Rate Control Point", Type: "org.bluetooth.characteristic.heart_rate_control_point"},
96 "2a3f": {Name: "Alert Status", Type: "org.bluetooth.characteristic.alert_status"},
97 "2a40": {Name: "Ringer Control Point", Type: "org.bluetooth.characteristic.ringer_control_point"},
98 "2a41": {Name: "Ringer Setting", Type: "org.bluetooth.characteristic.ringer_setting"},
99 "2a42": {Name: "Alert Category ID Bit Mask", Type: "org.bluetooth.characteristic.alert_category_id_bit_mask"},
100 "2a43": {Name: "Alert Category ID", Type: "org.bluetooth.characteristic.alert_category_id"},
101 "2a44": {Name: "Alert Notification Control Point", Type: "org.bluetooth.characteristic.alert_notification_control_point"},
102 "2a45": {Name: "Unread Alert Status", Type: "org.bluetooth.characteristic.unread_alert_status"},
103 "2a46": {Name: "New Alert", Type: "org.bluetooth.characteristic.new_alert"},
104 "2a47": {Name: "Supported New Alert Category", Type: "org.bluetooth.characteristic.supported_new_alert_category"},
105 "2a48": {Name: "Supported Unread Alert Category", Type: "org.bluetooth.characteristic.supported_unread_alert_category"},
106 "2a49": {Name: "Blood Pressure Feature", Type: "org.bluetooth.characteristic.blood_pressure_feature"},
107 "2a4a": {Name: "HID Information", Type: "org.bluetooth.characteristic.hid_information"},
108 "2a4b": {Name: "Report Map", Type: "org.bluetooth.characteristic.report_map"},
109 "2a4c": {Name: "HID Control Point", Type: "org.bluetooth.characteristic.hid_control_point"},
110 "2a4d": {Name: "Report", Type: "org.bluetooth.characteristic.report"},
111 "2a4e": {Name: "Protocol Mode", Type: "org.bluetooth.characteristic.protocol_mode"},
112 "2a4f": {Name: "Scan Interval Window", Type: "org.bluetooth.characteristic.scan_interval_window"},
113 "2a50": {Name: "PnP ID", Type: "org.bluetooth.characteristic.pnp_id"},
114 "2a51": {Name: "Glucose Feature", Type: "org.bluetooth.characteristic.glucose_feature"},
115 "2a52": {Name: "Record Access Control Point", Type: "org.bluetooth.characteristic.record_access_control_point"},
116 "2a53": {Name: "RSC Measurement", Type: "org.bluetooth.characteristic.rsc_measurement"},
117 "2a54": {Name: "RSC Feature", Type: "org.bluetooth.characteristic.rsc_feature"},
118 "2a55": {Name: "SC Control Point", Type: "org.bluetooth.characteristic.sc_control_point"},
119 "2a5b": {Name: "CSC Measurement", Type: "org.bluetooth.characteristic.csc_measurement"},
120 "2a5c": {Name: "CSC Feature", Type: "org.bluetooth.characteristic.csc_feature"},
121 "2a5d": {Name: "Sensor Location", Type: "org.bluetooth.characteristic.sensor_location"},
122 }