aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-net-esp-hosted/src/proto.rs110
1 files changed, 55 insertions, 55 deletions
diff --git a/embassy-net-esp-hosted/src/proto.rs b/embassy-net-esp-hosted/src/proto.rs
index b42ff62f1..034d5bf84 100644
--- a/embassy-net-esp-hosted/src/proto.rs
+++ b/embassy-net-esp-hosted/src/proto.rs
@@ -1,12 +1,10 @@
1#![allow(missing_docs)]
2
3use heapless::{String, Vec}; 1use heapless::{String, Vec};
4 2
5/// internal supporting structures for CtrlMsg 3/// internal supporting structures for CtrlMsg
6 4
7#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 5#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
8#[cfg_attr(feature = "defmt", derive(defmt::Format))] 6#[cfg_attr(feature = "defmt", derive(defmt::Format))]
9pub struct ScanResult { 7pub(crate) struct ScanResult {
10 #[noproto(tag = "1")] 8 #[noproto(tag = "1")]
11 pub ssid: String<32>, 9 pub ssid: String<32>,
12 #[noproto(tag = "2")] 10 #[noproto(tag = "2")]
@@ -21,7 +19,7 @@ pub struct ScanResult {
21 19
22#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 20#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
23#[cfg_attr(feature = "defmt", derive(defmt::Format))] 21#[cfg_attr(feature = "defmt", derive(defmt::Format))]
24pub struct ConnectedStaList { 22pub(crate) struct ConnectedStaList {
25 #[noproto(tag = "1")] 23 #[noproto(tag = "1")]
26 pub mac: String<32>, 24 pub mac: String<32>,
27 #[noproto(tag = "2")] 25 #[noproto(tag = "2")]
@@ -31,14 +29,14 @@ pub struct ConnectedStaList {
31 29
32#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 30#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
33#[cfg_attr(feature = "defmt", derive(defmt::Format))] 31#[cfg_attr(feature = "defmt", derive(defmt::Format))]
34pub struct CtrlMsgReqGetMacAddress { 32pub(crate) struct CtrlMsgReqGetMacAddress {
35 #[noproto(tag = "1")] 33 #[noproto(tag = "1")]
36 pub mode: u32, 34 pub mode: u32,
37} 35}
38 36
39#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 37#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
40#[cfg_attr(feature = "defmt", derive(defmt::Format))] 38#[cfg_attr(feature = "defmt", derive(defmt::Format))]
41pub struct CtrlMsgRespGetMacAddress { 39pub(crate) struct CtrlMsgRespGetMacAddress {
42 #[noproto(tag = "1")] 40 #[noproto(tag = "1")]
43 pub mac: String<32>, 41 pub mac: String<32>,
44 #[noproto(tag = "2")] 42 #[noproto(tag = "2")]
@@ -47,11 +45,11 @@ pub struct CtrlMsgRespGetMacAddress {
47 45
48#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 46#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
49#[cfg_attr(feature = "defmt", derive(defmt::Format))] 47#[cfg_attr(feature = "defmt", derive(defmt::Format))]
50pub struct CtrlMsgReqGetMode {} 48pub(crate) struct CtrlMsgReqGetMode {}
51 49
52#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 50#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
53#[cfg_attr(feature = "defmt", derive(defmt::Format))] 51#[cfg_attr(feature = "defmt", derive(defmt::Format))]
54pub struct CtrlMsgRespGetMode { 52pub(crate) struct CtrlMsgRespGetMode {
55 #[noproto(tag = "1")] 53 #[noproto(tag = "1")]
56 pub mode: u32, 54 pub mode: u32,
57 #[noproto(tag = "2")] 55 #[noproto(tag = "2")]
@@ -60,32 +58,32 @@ pub struct CtrlMsgRespGetMode {
60 58
61#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 59#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
62#[cfg_attr(feature = "defmt", derive(defmt::Format))] 60#[cfg_attr(feature = "defmt", derive(defmt::Format))]
63pub struct CtrlMsgReqSetMode { 61pub(crate) struct CtrlMsgReqSetMode {
64 #[noproto(tag = "1")] 62 #[noproto(tag = "1")]
65 pub mode: u32, 63 pub mode: u32,
66} 64}
67 65
68#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 66#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
69#[cfg_attr(feature = "defmt", derive(defmt::Format))] 67#[cfg_attr(feature = "defmt", derive(defmt::Format))]
70pub struct CtrlMsgRespSetMode { 68pub(crate) struct CtrlMsgRespSetMode {
71 #[noproto(tag = "1")] 69 #[noproto(tag = "1")]
72 pub resp: u32, 70 pub resp: u32,
73} 71}
74 72
75#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 73#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
76#[cfg_attr(feature = "defmt", derive(defmt::Format))] 74#[cfg_attr(feature = "defmt", derive(defmt::Format))]
77pub struct CtrlMsgReqGetStatus {} 75pub(crate) struct CtrlMsgReqGetStatus {}
78 76
79#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 77#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
80#[cfg_attr(feature = "defmt", derive(defmt::Format))] 78#[cfg_attr(feature = "defmt", derive(defmt::Format))]
81pub struct CtrlMsgRespGetStatus { 79pub(crate) struct CtrlMsgRespGetStatus {
82 #[noproto(tag = "1")] 80 #[noproto(tag = "1")]
83 pub resp: u32, 81 pub resp: u32,
84} 82}
85 83
86#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 84#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
87#[cfg_attr(feature = "defmt", derive(defmt::Format))] 85#[cfg_attr(feature = "defmt", derive(defmt::Format))]
88pub struct CtrlMsgReqSetMacAddress { 86pub(crate) struct CtrlMsgReqSetMacAddress {
89 #[noproto(tag = "1")] 87 #[noproto(tag = "1")]
90 pub mac: String<32>, 88 pub mac: String<32>,
91 #[noproto(tag = "2")] 89 #[noproto(tag = "2")]
@@ -94,18 +92,18 @@ pub struct CtrlMsgReqSetMacAddress {
94 92
95#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 93#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
96#[cfg_attr(feature = "defmt", derive(defmt::Format))] 94#[cfg_attr(feature = "defmt", derive(defmt::Format))]
97pub struct CtrlMsgRespSetMacAddress { 95pub(crate) struct CtrlMsgRespSetMacAddress {
98 #[noproto(tag = "1")] 96 #[noproto(tag = "1")]
99 pub resp: u32, 97 pub resp: u32,
100} 98}
101 99
102#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 100#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
103#[cfg_attr(feature = "defmt", derive(defmt::Format))] 101#[cfg_attr(feature = "defmt", derive(defmt::Format))]
104pub struct CtrlMsgReqGetApConfig {} 102pub(crate) struct CtrlMsgReqGetApConfig {}
105 103
106#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 104#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
107#[cfg_attr(feature = "defmt", derive(defmt::Format))] 105#[cfg_attr(feature = "defmt", derive(defmt::Format))]
108pub struct CtrlMsgRespGetApConfig { 106pub(crate) struct CtrlMsgRespGetApConfig {
109 #[noproto(tag = "1")] 107 #[noproto(tag = "1")]
110 pub ssid: String<32>, 108 pub ssid: String<32>,
111 #[noproto(tag = "2")] 109 #[noproto(tag = "2")]
@@ -122,7 +120,7 @@ pub struct CtrlMsgRespGetApConfig {
122 120
123#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 121#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
124#[cfg_attr(feature = "defmt", derive(defmt::Format))] 122#[cfg_attr(feature = "defmt", derive(defmt::Format))]
125pub struct CtrlMsgReqConnectAp { 123pub(crate) struct CtrlMsgReqConnectAp {
126 #[noproto(tag = "1")] 124 #[noproto(tag = "1")]
127 pub ssid: String<32>, 125 pub ssid: String<32>,
128 #[noproto(tag = "2")] 126 #[noproto(tag = "2")]
@@ -137,7 +135,7 @@ pub struct CtrlMsgReqConnectAp {
137 135
138#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 136#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
139#[cfg_attr(feature = "defmt", derive(defmt::Format))] 137#[cfg_attr(feature = "defmt", derive(defmt::Format))]
140pub struct CtrlMsgRespConnectAp { 138pub(crate) struct CtrlMsgRespConnectAp {
141 #[noproto(tag = "1")] 139 #[noproto(tag = "1")]
142 pub resp: u32, 140 pub resp: u32,
143 #[noproto(tag = "2")] 141 #[noproto(tag = "2")]
@@ -146,11 +144,11 @@ pub struct CtrlMsgRespConnectAp {
146 144
147#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 145#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
148#[cfg_attr(feature = "defmt", derive(defmt::Format))] 146#[cfg_attr(feature = "defmt", derive(defmt::Format))]
149pub struct CtrlMsgReqGetSoftApConfig {} 147pub(crate) struct CtrlMsgReqGetSoftApConfig {}
150 148
151#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 149#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
152#[cfg_attr(feature = "defmt", derive(defmt::Format))] 150#[cfg_attr(feature = "defmt", derive(defmt::Format))]
153pub struct CtrlMsgRespGetSoftApConfig { 151pub(crate) struct CtrlMsgRespGetSoftApConfig {
154 #[noproto(tag = "1")] 152 #[noproto(tag = "1")]
155 pub ssid: String<32>, 153 pub ssid: String<32>,
156 #[noproto(tag = "2")] 154 #[noproto(tag = "2")]
@@ -171,7 +169,7 @@ pub struct CtrlMsgRespGetSoftApConfig {
171 169
172#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 170#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
173#[cfg_attr(feature = "defmt", derive(defmt::Format))] 171#[cfg_attr(feature = "defmt", derive(defmt::Format))]
174pub struct CtrlMsgReqStartSoftAp { 172pub(crate) struct CtrlMsgReqStartSoftAp {
175 #[noproto(tag = "1")] 173 #[noproto(tag = "1")]
176 pub ssid: String<32>, 174 pub ssid: String<32>,
177 #[noproto(tag = "2")] 175 #[noproto(tag = "2")]
@@ -190,7 +188,7 @@ pub struct CtrlMsgReqStartSoftAp {
190 188
191#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 189#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
192#[cfg_attr(feature = "defmt", derive(defmt::Format))] 190#[cfg_attr(feature = "defmt", derive(defmt::Format))]
193pub struct CtrlMsgRespStartSoftAp { 191pub(crate) struct CtrlMsgRespStartSoftAp {
194 #[noproto(tag = "1")] 192 #[noproto(tag = "1")]
195 pub resp: u32, 193 pub resp: u32,
196 #[noproto(tag = "2")] 194 #[noproto(tag = "2")]
@@ -199,11 +197,11 @@ pub struct CtrlMsgRespStartSoftAp {
199 197
200#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 198#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
201#[cfg_attr(feature = "defmt", derive(defmt::Format))] 199#[cfg_attr(feature = "defmt", derive(defmt::Format))]
202pub struct CtrlMsgReqScanResult {} 200pub(crate) struct CtrlMsgReqScanResult {}
203 201
204#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 202#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
205#[cfg_attr(feature = "defmt", derive(defmt::Format))] 203#[cfg_attr(feature = "defmt", derive(defmt::Format))]
206pub struct CtrlMsgRespScanResult { 204pub(crate) struct CtrlMsgRespScanResult {
207 #[noproto(tag = "1")] 205 #[noproto(tag = "1")]
208 pub count: u32, 206 pub count: u32,
209 #[noproto(repeated, tag = "2")] 207 #[noproto(repeated, tag = "2")]
@@ -214,11 +212,11 @@ pub struct CtrlMsgRespScanResult {
214 212
215#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 213#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
216#[cfg_attr(feature = "defmt", derive(defmt::Format))] 214#[cfg_attr(feature = "defmt", derive(defmt::Format))]
217pub struct CtrlMsgReqSoftApConnectedSta {} 215pub(crate) struct CtrlMsgReqSoftApConnectedSta {}
218 216
219#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 217#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
220#[cfg_attr(feature = "defmt", derive(defmt::Format))] 218#[cfg_attr(feature = "defmt", derive(defmt::Format))]
221pub struct CtrlMsgRespSoftApConnectedSta { 219pub(crate) struct CtrlMsgRespSoftApConnectedSta {
222 #[noproto(tag = "1")] 220 #[noproto(tag = "1")]
223 pub num: u32, 221 pub num: u32,
224 #[noproto(repeated, tag = "2")] 222 #[noproto(repeated, tag = "2")]
@@ -229,43 +227,43 @@ pub struct CtrlMsgRespSoftApConnectedSta {
229 227
230#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 228#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
231#[cfg_attr(feature = "defmt", derive(defmt::Format))] 229#[cfg_attr(feature = "defmt", derive(defmt::Format))]
232pub struct CtrlMsgReqOtaBegin {} 230pub(crate) struct CtrlMsgReqOtaBegin {}
233 231
234#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 232#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
235#[cfg_attr(feature = "defmt", derive(defmt::Format))] 233#[cfg_attr(feature = "defmt", derive(defmt::Format))]
236pub struct CtrlMsgRespOtaBegin { 234pub(crate) struct CtrlMsgRespOtaBegin {
237 #[noproto(tag = "1")] 235 #[noproto(tag = "1")]
238 pub resp: u32, 236 pub resp: u32,
239} 237}
240 238
241#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 239#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
242#[cfg_attr(feature = "defmt", derive(defmt::Format))] 240#[cfg_attr(feature = "defmt", derive(defmt::Format))]
243pub struct CtrlMsgReqOtaWrite { 241pub(crate) struct CtrlMsgReqOtaWrite {
244 #[noproto(tag = "1")] 242 #[noproto(tag = "1")]
245 pub ota_data: Vec<u8, 1024>, 243 pub ota_data: Vec<u8, 1024>,
246} 244}
247 245
248#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 246#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
249#[cfg_attr(feature = "defmt", derive(defmt::Format))] 247#[cfg_attr(feature = "defmt", derive(defmt::Format))]
250pub struct CtrlMsgRespOtaWrite { 248pub(crate) struct CtrlMsgRespOtaWrite {
251 #[noproto(tag = "1")] 249 #[noproto(tag = "1")]
252 pub resp: u32, 250 pub resp: u32,
253} 251}
254 252
255#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 253#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
256#[cfg_attr(feature = "defmt", derive(defmt::Format))] 254#[cfg_attr(feature = "defmt", derive(defmt::Format))]
257pub struct CtrlMsgReqOtaEnd {} 255pub(crate) struct CtrlMsgReqOtaEnd {}
258 256
259#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 257#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
260#[cfg_attr(feature = "defmt", derive(defmt::Format))] 258#[cfg_attr(feature = "defmt", derive(defmt::Format))]
261pub struct CtrlMsgRespOtaEnd { 259pub(crate) struct CtrlMsgRespOtaEnd {
262 #[noproto(tag = "1")] 260 #[noproto(tag = "1")]
263 pub resp: u32, 261 pub resp: u32,
264} 262}
265 263
266#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 264#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
267#[cfg_attr(feature = "defmt", derive(defmt::Format))] 265#[cfg_attr(feature = "defmt", derive(defmt::Format))]
268pub struct CtrlMsgReqVendorIeData { 266pub(crate) struct CtrlMsgReqVendorIeData {
269 #[noproto(tag = "1")] 267 #[noproto(tag = "1")]
270 pub element_id: u32, 268 pub element_id: u32,
271 #[noproto(tag = "2")] 269 #[noproto(tag = "2")]
@@ -280,7 +278,7 @@ pub struct CtrlMsgReqVendorIeData {
280 278
281#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 279#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
282#[cfg_attr(feature = "defmt", derive(defmt::Format))] 280#[cfg_attr(feature = "defmt", derive(defmt::Format))]
283pub struct CtrlMsgReqSetSoftApVendorSpecificIe { 281pub(crate) struct CtrlMsgReqSetSoftApVendorSpecificIe {
284 #[noproto(tag = "1")] 282 #[noproto(tag = "1")]
285 pub enable: bool, 283 pub enable: bool,
286 #[noproto(tag = "2")] 284 #[noproto(tag = "2")]
@@ -293,32 +291,32 @@ pub struct CtrlMsgReqSetSoftApVendorSpecificIe {
293 291
294#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 292#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
295#[cfg_attr(feature = "defmt", derive(defmt::Format))] 293#[cfg_attr(feature = "defmt", derive(defmt::Format))]
296pub struct CtrlMsgRespSetSoftApVendorSpecificIe { 294pub(crate) struct CtrlMsgRespSetSoftApVendorSpecificIe {
297 #[noproto(tag = "1")] 295 #[noproto(tag = "1")]
298 pub resp: u32, 296 pub resp: u32,
299} 297}
300 298
301#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 299#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
302#[cfg_attr(feature = "defmt", derive(defmt::Format))] 300#[cfg_attr(feature = "defmt", derive(defmt::Format))]
303pub struct CtrlMsgReqSetWifiMaxTxPower { 301pub(crate) struct CtrlMsgReqSetWifiMaxTxPower {
304 #[noproto(tag = "1")] 302 #[noproto(tag = "1")]
305 pub wifi_max_tx_power: u32, 303 pub wifi_max_tx_power: u32,
306} 304}
307 305
308#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 306#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
309#[cfg_attr(feature = "defmt", derive(defmt::Format))] 307#[cfg_attr(feature = "defmt", derive(defmt::Format))]
310pub struct CtrlMsgRespSetWifiMaxTxPower { 308pub(crate) struct CtrlMsgRespSetWifiMaxTxPower {
311 #[noproto(tag = "1")] 309 #[noproto(tag = "1")]
312 pub resp: u32, 310 pub resp: u32,
313} 311}
314 312
315#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 313#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
316#[cfg_attr(feature = "defmt", derive(defmt::Format))] 314#[cfg_attr(feature = "defmt", derive(defmt::Format))]
317pub struct CtrlMsgReqGetWifiCurrTxPower {} 315pub(crate) struct CtrlMsgReqGetWifiCurrTxPower {}
318 316
319#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 317#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
320#[cfg_attr(feature = "defmt", derive(defmt::Format))] 318#[cfg_attr(feature = "defmt", derive(defmt::Format))]
321pub struct CtrlMsgRespGetWifiCurrTxPower { 319pub(crate) struct CtrlMsgRespGetWifiCurrTxPower {
322 #[noproto(tag = "1")] 320 #[noproto(tag = "1")]
323 pub wifi_curr_tx_power: u32, 321 pub wifi_curr_tx_power: u32,
324 #[noproto(tag = "2")] 322 #[noproto(tag = "2")]
@@ -327,7 +325,7 @@ pub struct CtrlMsgRespGetWifiCurrTxPower {
327 325
328#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 326#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
329#[cfg_attr(feature = "defmt", derive(defmt::Format))] 327#[cfg_attr(feature = "defmt", derive(defmt::Format))]
330pub struct CtrlMsgReqConfigHeartbeat { 328pub(crate) struct CtrlMsgReqConfigHeartbeat {
331 #[noproto(tag = "1")] 329 #[noproto(tag = "1")]
332 pub enable: bool, 330 pub enable: bool,
333 #[noproto(tag = "2")] 331 #[noproto(tag = "2")]
@@ -336,7 +334,7 @@ pub struct CtrlMsgReqConfigHeartbeat {
336 334
337#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 335#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
338#[cfg_attr(feature = "defmt", derive(defmt::Format))] 336#[cfg_attr(feature = "defmt", derive(defmt::Format))]
339pub struct CtrlMsgRespConfigHeartbeat { 337pub(crate) struct CtrlMsgRespConfigHeartbeat {
340 #[noproto(tag = "1")] 338 #[noproto(tag = "1")]
341 pub resp: u32, 339 pub resp: u32,
342} 340}
@@ -344,28 +342,28 @@ pub struct CtrlMsgRespConfigHeartbeat {
344 342
345#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 343#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
346#[cfg_attr(feature = "defmt", derive(defmt::Format))] 344#[cfg_attr(feature = "defmt", derive(defmt::Format))]
347pub struct CtrlMsgEventEspInit { 345pub(crate) struct CtrlMsgEventEspInit {
348 #[noproto(tag = "1")] 346 #[noproto(tag = "1")]
349 pub init_data: Vec<u8, 64>, 347 pub init_data: Vec<u8, 64>,
350} 348}
351 349
352#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 350#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
353#[cfg_attr(feature = "defmt", derive(defmt::Format))] 351#[cfg_attr(feature = "defmt", derive(defmt::Format))]
354pub struct CtrlMsgEventHeartbeat { 352pub(crate) struct CtrlMsgEventHeartbeat {
355 #[noproto(tag = "1")] 353 #[noproto(tag = "1")]
356 pub hb_num: u32, 354 pub hb_num: u32,
357} 355}
358 356
359#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 357#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
360#[cfg_attr(feature = "defmt", derive(defmt::Format))] 358#[cfg_attr(feature = "defmt", derive(defmt::Format))]
361pub struct CtrlMsgEventStationDisconnectFromAp { 359pub(crate) struct CtrlMsgEventStationDisconnectFromAp {
362 #[noproto(tag = "1")] 360 #[noproto(tag = "1")]
363 pub resp: u32, 361 pub resp: u32,
364} 362}
365 363
366#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 364#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
367#[cfg_attr(feature = "defmt", derive(defmt::Format))] 365#[cfg_attr(feature = "defmt", derive(defmt::Format))]
368pub struct CtrlMsgEventStationDisconnectFromEspSoftAp { 366pub(crate) struct CtrlMsgEventStationDisconnectFromEspSoftAp {
369 #[noproto(tag = "1")] 367 #[noproto(tag = "1")]
370 pub resp: u32, 368 pub resp: u32,
371 #[noproto(tag = "2")] 369 #[noproto(tag = "2")]
@@ -374,7 +372,7 @@ pub struct CtrlMsgEventStationDisconnectFromEspSoftAp {
374 372
375#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)] 373#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
376#[cfg_attr(feature = "defmt", derive(defmt::Format))] 374#[cfg_attr(feature = "defmt", derive(defmt::Format))]
377pub struct CtrlMsg { 375pub(crate) struct CtrlMsg {
378 /// msg_type could be req, resp or Event 376 /// msg_type could be req, resp or Event
379 #[noproto(tag = "1")] 377 #[noproto(tag = "1")]
380 pub msg_type: CtrlMsgType, 378 pub msg_type: CtrlMsgType,
@@ -392,7 +390,7 @@ pub struct CtrlMsg {
392/// union of all msg ids 390/// union of all msg ids
393#[derive(Debug, Clone, Eq, PartialEq, noproto::Oneof)] 391#[derive(Debug, Clone, Eq, PartialEq, noproto::Oneof)]
394#[cfg_attr(feature = "defmt", derive(defmt::Format))] 392#[cfg_attr(feature = "defmt", derive(defmt::Format))]
395pub enum CtrlMsgPayload { 393pub(crate) enum CtrlMsgPayload {
396 /// * Requests * 394 /// * Requests *
397 #[noproto(tag = "101")] 395 #[noproto(tag = "101")]
398 ReqGetMacAddress(CtrlMsgReqGetMacAddress), 396 ReqGetMacAddress(CtrlMsgReqGetMacAddress),
@@ -494,7 +492,7 @@ pub enum CtrlMsgPayload {
494#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)] 492#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
495#[repr(u32)] 493#[repr(u32)]
496#[cfg_attr(feature = "defmt", derive(defmt::Format))] 494#[cfg_attr(feature = "defmt", derive(defmt::Format))]
497pub enum CtrlVendorIeType { 495pub(crate) enum CtrlVendorIeType {
498 #[default] 496 #[default]
499 Beacon = 0, 497 Beacon = 0,
500 ProbeReq = 1, 498 ProbeReq = 1,
@@ -506,7 +504,7 @@ pub enum CtrlVendorIeType {
506#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)] 504#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
507#[repr(u32)] 505#[repr(u32)]
508#[cfg_attr(feature = "defmt", derive(defmt::Format))] 506#[cfg_attr(feature = "defmt", derive(defmt::Format))]
509pub enum CtrlVendorIeid { 507pub(crate) enum CtrlVendorIeid {
510 #[default] 508 #[default]
511 Id0 = 0, 509 Id0 = 0,
512 Id1 = 1, 510 Id1 = 1,
@@ -515,7 +513,7 @@ pub enum CtrlVendorIeid {
515#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)] 513#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
516#[repr(u32)] 514#[repr(u32)]
517#[cfg_attr(feature = "defmt", derive(defmt::Format))] 515#[cfg_attr(feature = "defmt", derive(defmt::Format))]
518pub enum CtrlWifiMode { 516pub(crate) enum CtrlWifiMode {
519 #[default] 517 #[default]
520 None = 0, 518 None = 0,
521 Sta = 1, 519 Sta = 1,
@@ -526,7 +524,7 @@ pub enum CtrlWifiMode {
526#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)] 524#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
527#[repr(u32)] 525#[repr(u32)]
528#[cfg_attr(feature = "defmt", derive(defmt::Format))] 526#[cfg_attr(feature = "defmt", derive(defmt::Format))]
529pub enum CtrlWifiBw { 527pub(crate) enum CtrlWifiBw {
530 #[default] 528 #[default]
531 BwInvalid = 0, 529 BwInvalid = 0,
532 Ht20 = 1, 530 Ht20 = 1,
@@ -536,13 +534,15 @@ pub enum CtrlWifiBw {
536#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)] 534#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
537#[repr(u32)] 535#[repr(u32)]
538#[cfg_attr(feature = "defmt", derive(defmt::Format))] 536#[cfg_attr(feature = "defmt", derive(defmt::Format))]
539pub enum CtrlWifiPowerSave { 537pub(crate) enum CtrlWifiPowerSave {
540 #[default] 538 #[default]
541 PsInvalid = 0, 539 PsInvalid = 0,
542 MinModem = 1, 540 MinModem = 1,
543 MaxModem = 2, 541 MaxModem = 2,
544} 542}
545 543
544/// Wifi Security Settings
545#[allow(missing_docs)]
546#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)] 546#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
547#[repr(u32)] 547#[repr(u32)]
548#[cfg_attr(feature = "defmt", derive(defmt::Format))] 548#[cfg_attr(feature = "defmt", derive(defmt::Format))]
@@ -562,7 +562,7 @@ pub enum CtrlWifiSecProt {
562#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)] 562#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
563#[repr(u32)] 563#[repr(u32)]
564#[cfg_attr(feature = "defmt", derive(defmt::Format))] 564#[cfg_attr(feature = "defmt", derive(defmt::Format))]
565pub enum CtrlStatus { 565pub(crate) enum CtrlStatus {
566 #[default] 566 #[default]
567 Connected = 0, 567 Connected = 0,
568 NotConnected = 1, 568 NotConnected = 1,
@@ -575,7 +575,7 @@ pub enum CtrlStatus {
575#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)] 575#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
576#[repr(u32)] 576#[repr(u32)]
577#[cfg_attr(feature = "defmt", derive(defmt::Format))] 577#[cfg_attr(feature = "defmt", derive(defmt::Format))]
578pub enum CtrlMsgType { 578pub(crate) enum CtrlMsgType {
579 #[default] 579 #[default]
580 MsgTypeInvalid = 0, 580 MsgTypeInvalid = 0,
581 Req = 1, 581 Req = 1,
@@ -587,7 +587,7 @@ pub enum CtrlMsgType {
587#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)] 587#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
588#[repr(u32)] 588#[repr(u32)]
589#[cfg_attr(feature = "defmt", derive(defmt::Format))] 589#[cfg_attr(feature = "defmt", derive(defmt::Format))]
590pub enum CtrlMsgId { 590pub(crate) enum CtrlMsgId {
591 #[default] 591 #[default]
592 MsgIdInvalid = 0, 592 MsgIdInvalid = 0,
593 /// * Request Msgs * 593 /// * Request Msgs *