diff options
| -rw-r--r-- | embassy-net-esp-hosted/src/proto.rs | 110 |
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 | |||
| 3 | use heapless::{String, Vec}; | 1 | use 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))] |
| 9 | pub struct ScanResult { | 7 | pub(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))] |
| 24 | pub struct ConnectedStaList { | 22 | pub(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))] |
| 34 | pub struct CtrlMsgReqGetMacAddress { | 32 | pub(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))] |
| 41 | pub struct CtrlMsgRespGetMacAddress { | 39 | pub(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))] |
| 50 | pub struct CtrlMsgReqGetMode {} | 48 | pub(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))] |
| 54 | pub struct CtrlMsgRespGetMode { | 52 | pub(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))] |
| 63 | pub struct CtrlMsgReqSetMode { | 61 | pub(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))] |
| 70 | pub struct CtrlMsgRespSetMode { | 68 | pub(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))] |
| 77 | pub struct CtrlMsgReqGetStatus {} | 75 | pub(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))] |
| 81 | pub struct CtrlMsgRespGetStatus { | 79 | pub(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))] |
| 88 | pub struct CtrlMsgReqSetMacAddress { | 86 | pub(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))] |
| 97 | pub struct CtrlMsgRespSetMacAddress { | 95 | pub(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))] |
| 104 | pub struct CtrlMsgReqGetApConfig {} | 102 | pub(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))] |
| 108 | pub struct CtrlMsgRespGetApConfig { | 106 | pub(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))] |
| 125 | pub struct CtrlMsgReqConnectAp { | 123 | pub(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))] |
| 140 | pub struct CtrlMsgRespConnectAp { | 138 | pub(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))] |
| 149 | pub struct CtrlMsgReqGetSoftApConfig {} | 147 | pub(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))] |
| 153 | pub struct CtrlMsgRespGetSoftApConfig { | 151 | pub(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))] |
| 174 | pub struct CtrlMsgReqStartSoftAp { | 172 | pub(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))] |
| 193 | pub struct CtrlMsgRespStartSoftAp { | 191 | pub(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))] |
| 202 | pub struct CtrlMsgReqScanResult {} | 200 | pub(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))] |
| 206 | pub struct CtrlMsgRespScanResult { | 204 | pub(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))] |
| 217 | pub struct CtrlMsgReqSoftApConnectedSta {} | 215 | pub(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))] |
| 221 | pub struct CtrlMsgRespSoftApConnectedSta { | 219 | pub(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))] |
| 232 | pub struct CtrlMsgReqOtaBegin {} | 230 | pub(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))] |
| 236 | pub struct CtrlMsgRespOtaBegin { | 234 | pub(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))] |
| 243 | pub struct CtrlMsgReqOtaWrite { | 241 | pub(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))] |
| 250 | pub struct CtrlMsgRespOtaWrite { | 248 | pub(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))] |
| 257 | pub struct CtrlMsgReqOtaEnd {} | 255 | pub(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))] |
| 261 | pub struct CtrlMsgRespOtaEnd { | 259 | pub(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))] |
| 268 | pub struct CtrlMsgReqVendorIeData { | 266 | pub(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))] |
| 283 | pub struct CtrlMsgReqSetSoftApVendorSpecificIe { | 281 | pub(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))] |
| 296 | pub struct CtrlMsgRespSetSoftApVendorSpecificIe { | 294 | pub(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))] |
| 303 | pub struct CtrlMsgReqSetWifiMaxTxPower { | 301 | pub(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))] |
| 310 | pub struct CtrlMsgRespSetWifiMaxTxPower { | 308 | pub(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))] |
| 317 | pub struct CtrlMsgReqGetWifiCurrTxPower {} | 315 | pub(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))] |
| 321 | pub struct CtrlMsgRespGetWifiCurrTxPower { | 319 | pub(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))] |
| 330 | pub struct CtrlMsgReqConfigHeartbeat { | 328 | pub(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))] |
| 339 | pub struct CtrlMsgRespConfigHeartbeat { | 337 | pub(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))] |
| 347 | pub struct CtrlMsgEventEspInit { | 345 | pub(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))] |
| 354 | pub struct CtrlMsgEventHeartbeat { | 352 | pub(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))] |
| 361 | pub struct CtrlMsgEventStationDisconnectFromAp { | 359 | pub(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))] |
| 368 | pub struct CtrlMsgEventStationDisconnectFromEspSoftAp { | 366 | pub(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))] |
| 377 | pub struct CtrlMsg { | 375 | pub(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))] |
| 395 | pub enum CtrlMsgPayload { | 393 | pub(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))] |
| 497 | pub enum CtrlVendorIeType { | 495 | pub(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))] |
| 509 | pub enum CtrlVendorIeid { | 507 | pub(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))] |
| 518 | pub enum CtrlWifiMode { | 516 | pub(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))] |
| 529 | pub enum CtrlWifiBw { | 527 | pub(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))] |
| 539 | pub enum CtrlWifiPowerSave { | 537 | pub(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))] |
| 565 | pub enum CtrlStatus { | 565 | pub(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))] |
| 578 | pub enum CtrlMsgType { | 578 | pub(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))] |
| 590 | pub enum CtrlMsgId { | 590 | pub(crate) enum CtrlMsgId { |
| 591 | #[default] | 591 | #[default] |
| 592 | MsgIdInvalid = 0, | 592 | MsgIdInvalid = 0, |
| 593 | /// * Request Msgs * | 593 | /// * Request Msgs * |
