stm32wb_hci/types/common.rs
1//! Common Data Types
2
3/// Enumeration of "Common Data Types" from the [Bluetooth Assigned Numbers][0]
4/// registry.
5///
6/// [0]: https://www.bluetooth.com/specifications/assigned-numbers/
7#[repr(u8)]
8#[derive(Copy, Clone, Debug, PartialEq)]
9#[cfg_attr(feature = "defmt", derive(defmt::Format))]
10pub enum CommonDataType {
11 /// Ref: Core Specification Supplement, Part A, Section 1.3
12 Flags = 0x01,
13 /// Ref: Core Specification Supplement, Part A, Section 1.1
14 IncompleteListOf16BitServiceClassUuids = 0x02,
15 /// Ref: Core Specification Supplement, Part A, Section 1.1
16 CompleteListOf16BitServiceClassUuids = 0x03,
17 /// Ref: Core Specification Supplement, Part A, Section 1.1
18 IncompleteListOf32BitServiceClassUuids = 0x04,
19 /// Ref: Core Specification Supplement, Part A, Section 1.1
20 CompleteListOf32BitServiceClassUuids = 0x05,
21 /// Ref: Core Specification Supplement, Part A, Section 1.1
22 IncompleteListOf128BitServiceClassUuids = 0x06,
23 /// Ref: Core Specification Supplement, Part A, Section 1.1
24 CompleteListOf128BitServiceClassUuids = 0x07,
25 /// Ref: Core Specification Supplement, Part A, Section 1.2
26 ShortenedLocalName = 0x08,
27 /// Ref: Core Specification Supplement, Part A, Section 1.2
28 CompleteLocalName = 0x09,
29 /// Ref: Core Specification Supplement, Part A, Section 1.5
30 TxPowerLevel = 0x0a,
31 /// Ref: Core Specification Supplement, Part A, Section 1.6
32 ClassOfDevice = 0x0d,
33 /// Ref: Core Specification Supplement, Part A, Section 1.6
34 SimplePairingHashC192 = 0x0e,
35 /// Ref: Core Specification Supplement, Part A, Section 1.6
36 SimplePairingRandomizerR192 = 0x0f,
37 /// Ref: Device ID Profile
38 DeviceId = 0x10, // (also SecurityManagerTkValue)
39 /// Ref: Core Specification Supplement, Part A, Section 1.7
40 SecurityManagerTkValue = 0x11,
41 /// Ref: Core Specification Supplement, Part A, Section 1.9
42 PeripheralConnectionIntervalRange = 0x12,
43 /// Ref: Core Specification Supplement, Part A, Section 1.10
44 ListOf16BitServiceSolicitationUuids = 0x14,
45 /// Ref: Core Specification Supplement, Part A, Section 1.10
46 ListOf128BitServiceSolicitationUuids = 0x15,
47 /// Ref: Core Specification Supplement, Part A, Section 1.11
48 ServiceData16BitUuid = 0x16,
49 /// Ref: Core Specification Supplement, Part A, Section 1.13
50 PublicTargetAddress = 0x17,
51 /// Ref: Core Specification Supplement, Part A, Section 1.14
52 RandomTargetAddress = 0x18,
53 /// Ref: Core Specification Supplement, Part A, Section 1.12
54 Appearance = 0x19,
55 /// Ref: Core Specification Supplement, Part A, Section 1.15
56 AdvertisingInterval = 0x1a,
57 /// Ref: Core Specification Supplement, Part A, Section 1.16
58 LeBluetoothDeviceAddress = 0x1b,
59 /// Ref: Core Specification Supplement, Part A, Section 1.17
60 LeRole = 0x1c,
61 /// Ref: Core Specification Supplement, Part A, Section 1.6
62 SimplePairingHashC256 = 0x1d,
63 /// Ref: Core Specification Supplement, Part A, Section 1.6
64 SimplePairingRandomizerR256 = 0x1e,
65 /// Ref: Core Specification Supplement, Part A, Section 1.10
66 ListOf32BitServiceSolicitationUuids = 0x1f,
67 /// Ref: Core Specification Supplement, Part A, Section 1.11
68 ServiceData32BitUuid = 0x20,
69 /// Ref: Core Specification Supplement, Part A, Section 1.11
70 ServiceData128BitUuid = 0x21,
71 /// Ref: Core Specification Supplement, Part A, Section 1.6
72 LeSecureConnectionsConfirmationValue = 0x22,
73 /// Ref: Core Specification Supplement, Part A, Section 1.6
74 LeSecureConnectionsRandomValue = 0x23,
75 /// Ref: Core Specification Supplement, Part A, Section 1.18
76 Uri = 0x24,
77 /// Ref: Indoor Positioning Service
78 IndoorPositioning = 0x25,
79 /// Ref: Transport Discovery Service
80 TransportDiscoveryData = 0x26,
81 /// Ref: Core Specification Supplement, Part A, Section 1.19
82 LeSupportedFeatures = 0x27,
83 /// Ref: Core Specification Supplement, Part A, Section 1.20
84 ChannelMapUpdateIndication = 0x28,
85 /// Ref: Mesh Profile Specification, Section 5.2.1
86 PbAdv = 0x29,
87 /// Ref: Mesh Profile Specification, Section 3.3.1
88 MeshMessage = 0x2a,
89 /// Ref: Mesh Profile Specification, Section 3.9
90 MeshBeacon = 0x2b,
91 /// Ref: Core Specification Supplement, Part A, Section 1.21
92 BigInfo = 0x2c,
93 /// Ref: Core Specification Supplement, Part A, Section 1.22
94 BroadcastCode = 0x2d,
95 /// Ref: Coordinated Set Identification Profile
96 ResolvableSetIdentifier = 0x2e,
97 /// Ref: Core Specification Supplement, Part A, Section 1.15
98 AdvertisingIntervalLong = 0x2f,
99 /// Ref: Public Broadcast Profile
100 BroadcastName = 0x30,
101 /// Ref: 3D Synchronization Profile
102 ThreeDInformationData = 0x3d,
103 /// Ref: Core Specification Supplement, Part A, Section 1.4
104 ManufacturerSpecificData = 0xff,
105}