ots_core/
ids.rs

1macro_rules! ids {
2    ($(- uuid: $uuid:literal name: $name:literal id: org.bluetooth.service. $id:ident)*) => {
3        $(
4            #[doc = stringify!($name)]
5            #[doc = " (org.bluetooth.service."]
6            #[doc = stringify!($id)]
7            #[doc = ")"]
8            #[allow(non_upper_case_globals)]
9            pub const $id: uuid::Uuid = uuid::Uuid::from_fields($uuid, 0x0, 0x1000, &[0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb]);
10        )*
11    };
12    ($(- uuid: $uuid:literal name: $name:literal id: org.bluetooth.characteristic. $id:ident)*) => {
13        $(
14            #[doc = stringify!($name)]
15            #[doc = " (org.bluetooth.characteristic."]
16            #[doc = stringify!($id)]
17            #[doc = ")"]
18            #[allow(non_upper_case_globals)]
19            pub const $id: uuid::Uuid = uuid::Uuid::from_fields($uuid, 0x0, 0x1000, &[0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb]);
20        )*
21    };
22}
23
24pub mod service {
25    ids! {
26        - uuid: 0x1825
27          name: "Object Transfer"
28          id: org.bluetooth.service.object_transfer
29    }
30}
31
32pub mod characteristic {
33    ids! {
34        - uuid: 0x2ABD
35          name: "OTS Feature"
36          id: org.bluetooth.characteristic.ots_feature
37        - uuid: 0x2ABE
38          name: "Object Name"
39          id: org.bluetooth.characteristic.object_name
40        - uuid: 0x2ABF
41          name: "Object Type"
42          id: org.bluetooth.characteristic.object_type
43        - uuid: 0x2AC0
44          name: "Object Size"
45          id: org.bluetooth.characteristic.object_size
46        - uuid: 0x2AC1
47          name: "Object First-Created"
48          id: org.bluetooth.characteristic.object_first_created
49        - uuid: 0x2AC2
50          name: "Object Last-Modified"
51          id: org.bluetooth.characteristic.object_last_modified
52        - uuid: 0x2AC3
53          name: "Object ID"
54          id: org.bluetooth.characteristic.object_id
55        - uuid: 0x2AC4
56          name: "Object Properties"
57          id: org.bluetooth.characteristic.object_properties
58        - uuid: 0x2AC5
59          name: "Object Action Control Point"
60          id: org.bluetooth.characteristic.object_action_control_point
61        - uuid: 0x2AC6
62          name: "Object List Control Point"
63          id: org.bluetooth.characteristic.object_list_control_point
64        - uuid: 0x2AC7
65          name: "Object List Filter"
66          id: org.bluetooth.characteristic.object_list_filter
67        - uuid: 0x2AC8
68          name: "Object Changed"
69          id: org.bluetooth.characteristic.object_changed
70    }
71}