network/device/wifi/
command.rs1use super::*;
2use file_system::{ControlCommand, define_command};
3
4define_command!(
5 GET_WIFI_CAPABILITIES,
6 Read,
7 device::kind::WIFI,
8 0,
9 (),
10 WifiCapabilities
11);
12define_command!(
13 GET_WIFI_RADIO_STATE,
14 Read,
15 device::kind::WIFI,
16 1,
17 (),
18 WifiRadioState
19);
20define_command!(
21 SET_WIFI_RADIO_STATE,
22 Write,
23 device::kind::WIFI,
24 2,
25 WifiRadioState,
26 ()
27);
28define_command!(
29 START_WIFI_SCAN,
30 Write,
31 device::kind::WIFI,
32 3,
33 WifiScanConfiguration,
34 ()
35);
36define_command!(
37 GET_WIFI_SCAN_STATE,
38 Read,
39 device::kind::WIFI,
40 4,
41 (),
42 WifiScanState
43);
44define_command!(
45 GET_WIFI_SCAN_RESULT_COUNT,
46 Read,
47 device::kind::WIFI,
48 5,
49 (),
50 WifiScanResultCount
51);
52define_command!(
54 GET_WIFI_SCAN_RESULT,
55 Read,
56 device::kind::WIFI,
57 6,
58 WifiScanResultRequest,
59 WifiAccessPoint
60);
61define_command!(
62 CONNECT_WIFI_CLIENT,
63 Write,
64 device::kind::WIFI,
65 7,
66 WifiClientConfiguration,
67 ()
68);
69define_command!(DISCONNECT_WIFI_CLIENT, Write, device::kind::WIFI, 8, (), ());
70define_command!(
71 GET_WIFI_CONNECTION_STATE,
72 Read,
73 device::kind::WIFI,
74 9,
75 (),
76 WifiConnectionState
77);
78define_command!(
80 GET_WIFI_CONNECTION_INFO,
81 Read,
82 device::kind::WIFI,
83 10,
84 (),
85 WifiConnectionInfo
86);
87define_command!(
88 GET_WIFI_LAST_CONNECTION_ERROR,
89 Read,
90 device::kind::WIFI,
91 11,
92 (),
93 WifiConnectionErrorKind
94);