bt_hci/cmd/info.rs
1//! Informational parameters [📖](https://www.bluetooth.com/wp-content/uploads/Files/Specification/HTML/Core-54/out/en/host-controller-interface/host-controller-interface-functional-specification.html#UUID-42372304-c9ef-dcab-6905-4e5b64703d45)
2
3use super::cmd;
4use crate::param::{BdAddr, CmdMask, CoreSpecificationVersion, ExtendedLmpFeatures, LmpFeatureMask};
5
6cmd! {
7 /// Read Local Version Information command [📖](https://www.bluetooth.com/wp-content/uploads/Files/Specification/HTML/Core-54/out/en/host-controller-interface/host-controller-interface-functional-specification.html#UUID-cf7fef88-faa4-fd2e-7c00-ab1ec7985a19)
8 ReadLocalVersionInformation(INFO_PARAMS, 0x0001) {
9 Params = ();
10 ReadLocalVersionInformationReturn {
11 hci_version: CoreSpecificationVersion,
12 hci_subversion: u16,
13 lmp_version: CoreSpecificationVersion,
14 company_identifier: u16,
15 lmp_subversion: u16,
16 }
17 }
18}
19
20cmd! {
21 /// Read Local Supported Commands command [📖](https://www.bluetooth.com/wp-content/uploads/Files/Specification/HTML/Core-54/out/en/host-controller-interface/host-controller-interface-functional-specification.html#UUID-d9df0f48-030f-0567-ecf3-8304df5c3eb0)
22 ReadLocalSupportedCmds(INFO_PARAMS, 0x0002) {
23 Params = ();
24 Return = CmdMask;
25 }
26}
27
28cmd! {
29 /// Read Local Supported Features command [📖](https://www.bluetooth.com/wp-content/uploads/Files/Specification/HTML/Core-54/out/en/host-controller-interface/host-controller-interface-functional-specification.html#UUID-17c54ce9-1772-096f-c512-ba080bd11d04)
30 ReadLocalSupportedFeatures(INFO_PARAMS, 0x0003) {
31 Params = ();
32 Return = LmpFeatureMask;
33 }
34}
35
36cmd! {
37 /// Read Local Extended Features command [📖](https://www.bluetooth.com/wp-content/uploads/Files/Specification/HTML/Core_v6.3/out/en/host-controller-interface/host-controller-interface-functional-specification.html#UUID-a63cc912-c71e-b53c-8b25-ee759f7b33c3)
38 ReadLocalExtendedFeatures(INFO_PARAMS, 0x0004) {
39 ReadLocalSupportedFeaturesParams {
40 page_number: u8,
41 }
42 Return = ExtendedLmpFeatures;
43 }
44}
45
46cmd! {
47 /// Read BD_ADDR command [📖](https://www.bluetooth.com/wp-content/uploads/Files/Specification/HTML/Core-54/out/en/host-controller-interface/host-controller-interface-functional-specification.html#UUID-151a8bec-71be-df54-2043-92d366376c53)
48 ReadBdAddr(INFO_PARAMS, 0x0009) {
49 Params = ();
50 Return = BdAddr;
51 }
52}