|
|
|
@ -4,7 +4,7 @@ use heapless::{String, Vec};
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct ScanResult {
|
|
|
|
|
pub struct ScanResult {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub ssid: String<32>,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -19,7 +19,7 @@ pub(crate) struct ScanResult {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct ConnectedStaList {
|
|
|
|
|
pub struct ConnectedStaList {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub mac: String<32>,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -29,14 +29,14 @@ pub(crate) struct ConnectedStaList {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqGetMacAddress {
|
|
|
|
|
pub struct CtrlMsgReqGetMacAddress {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub mode: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespGetMacAddress {
|
|
|
|
|
pub struct CtrlMsgRespGetMacAddress {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub mac: String<32>,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -45,11 +45,11 @@ pub(crate) struct CtrlMsgRespGetMacAddress {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqGetMode {}
|
|
|
|
|
pub struct CtrlMsgReqGetMode {}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespGetMode {
|
|
|
|
|
pub struct CtrlMsgRespGetMode {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub mode: u32,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -58,32 +58,32 @@ pub(crate) struct CtrlMsgRespGetMode {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqSetMode {
|
|
|
|
|
pub struct CtrlMsgReqSetMode {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub mode: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespSetMode {
|
|
|
|
|
pub struct CtrlMsgRespSetMode {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqGetStatus {}
|
|
|
|
|
pub struct CtrlMsgReqGetStatus {}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespGetStatus {
|
|
|
|
|
pub struct CtrlMsgRespGetStatus {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqSetMacAddress {
|
|
|
|
|
pub struct CtrlMsgReqSetMacAddress {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub mac: String<32>,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -92,18 +92,18 @@ pub(crate) struct CtrlMsgReqSetMacAddress {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespSetMacAddress {
|
|
|
|
|
pub struct CtrlMsgRespSetMacAddress {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqGetApConfig {}
|
|
|
|
|
pub struct CtrlMsgReqGetApConfig {}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespGetApConfig {
|
|
|
|
|
pub struct CtrlMsgRespGetApConfig {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub ssid: String<32>,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -120,7 +120,7 @@ pub(crate) struct CtrlMsgRespGetApConfig {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqConnectAp {
|
|
|
|
|
pub struct CtrlMsgReqConnectAp {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub ssid: String<32>,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -135,7 +135,7 @@ pub(crate) struct CtrlMsgReqConnectAp {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespConnectAp {
|
|
|
|
|
pub struct CtrlMsgRespConnectAp {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -144,11 +144,11 @@ pub(crate) struct CtrlMsgRespConnectAp {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqGetSoftApConfig {}
|
|
|
|
|
pub struct CtrlMsgReqGetSoftApConfig {}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespGetSoftApConfig {
|
|
|
|
|
pub struct CtrlMsgRespGetSoftApConfig {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub ssid: String<32>,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -169,7 +169,7 @@ pub(crate) struct CtrlMsgRespGetSoftApConfig {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqStartSoftAp {
|
|
|
|
|
pub struct CtrlMsgReqStartSoftAp {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub ssid: String<32>,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -188,7 +188,7 @@ pub(crate) struct CtrlMsgReqStartSoftAp {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespStartSoftAp {
|
|
|
|
|
pub struct CtrlMsgRespStartSoftAp {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -197,11 +197,11 @@ pub(crate) struct CtrlMsgRespStartSoftAp {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqScanResult {}
|
|
|
|
|
pub struct CtrlMsgReqScanResult {}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespScanResult {
|
|
|
|
|
pub struct CtrlMsgRespScanResult {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub count: u32,
|
|
|
|
|
#[noproto(repeated, tag = "2")]
|
|
|
|
@ -212,11 +212,11 @@ pub(crate) struct CtrlMsgRespScanResult {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqSoftApConnectedSta {}
|
|
|
|
|
pub struct CtrlMsgReqSoftApConnectedSta {}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespSoftApConnectedSta {
|
|
|
|
|
pub struct CtrlMsgRespSoftApConnectedSta {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub num: u32,
|
|
|
|
|
#[noproto(repeated, tag = "2")]
|
|
|
|
@ -227,43 +227,43 @@ pub(crate) struct CtrlMsgRespSoftApConnectedSta {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqOtaBegin {}
|
|
|
|
|
pub struct CtrlMsgReqOtaBegin {}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespOtaBegin {
|
|
|
|
|
pub struct CtrlMsgRespOtaBegin {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqOtaWrite {
|
|
|
|
|
pub struct CtrlMsgReqOtaWrite {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub ota_data: Vec<u8, 1024>,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespOtaWrite {
|
|
|
|
|
pub struct CtrlMsgRespOtaWrite {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqOtaEnd {}
|
|
|
|
|
pub struct CtrlMsgReqOtaEnd {}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespOtaEnd {
|
|
|
|
|
pub struct CtrlMsgRespOtaEnd {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqVendorIeData {
|
|
|
|
|
pub struct CtrlMsgReqVendorIeData {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub element_id: u32,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -278,7 +278,7 @@ pub(crate) struct CtrlMsgReqVendorIeData {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqSetSoftApVendorSpecificIe {
|
|
|
|
|
pub struct CtrlMsgReqSetSoftApVendorSpecificIe {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub enable: bool,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -291,32 +291,32 @@ pub(crate) struct CtrlMsgReqSetSoftApVendorSpecificIe {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespSetSoftApVendorSpecificIe {
|
|
|
|
|
pub struct CtrlMsgRespSetSoftApVendorSpecificIe {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqSetWifiMaxTxPower {
|
|
|
|
|
pub struct CtrlMsgReqSetWifiMaxTxPower {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub wifi_max_tx_power: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespSetWifiMaxTxPower {
|
|
|
|
|
pub struct CtrlMsgRespSetWifiMaxTxPower {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqGetWifiCurrTxPower {}
|
|
|
|
|
pub struct CtrlMsgReqGetWifiCurrTxPower {}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespGetWifiCurrTxPower {
|
|
|
|
|
pub struct CtrlMsgRespGetWifiCurrTxPower {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub wifi_curr_tx_power: u32,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -325,7 +325,7 @@ pub(crate) struct CtrlMsgRespGetWifiCurrTxPower {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgReqConfigHeartbeat {
|
|
|
|
|
pub struct CtrlMsgReqConfigHeartbeat {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub enable: bool,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -334,7 +334,7 @@ pub(crate) struct CtrlMsgReqConfigHeartbeat {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgRespConfigHeartbeat {
|
|
|
|
|
pub struct CtrlMsgRespConfigHeartbeat {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
}
|
|
|
|
@ -342,28 +342,28 @@ pub(crate) struct CtrlMsgRespConfigHeartbeat {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgEventEspInit {
|
|
|
|
|
pub struct CtrlMsgEventEspInit {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub init_data: Vec<u8, 64>,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgEventHeartbeat {
|
|
|
|
|
pub struct CtrlMsgEventHeartbeat {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub hb_num: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgEventStationDisconnectFromAp {
|
|
|
|
|
pub struct CtrlMsgEventStationDisconnectFromAp {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsgEventStationDisconnectFromEspSoftAp {
|
|
|
|
|
pub struct CtrlMsgEventStationDisconnectFromEspSoftAp {
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub resp: u32,
|
|
|
|
|
#[noproto(tag = "2")]
|
|
|
|
@ -372,7 +372,7 @@ pub(crate) struct CtrlMsgEventStationDisconnectFromEspSoftAp {
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) struct CtrlMsg {
|
|
|
|
|
pub struct CtrlMsg {
|
|
|
|
|
/// msg_type could be req, resp or Event
|
|
|
|
|
#[noproto(tag = "1")]
|
|
|
|
|
pub msg_type: CtrlMsgType,
|
|
|
|
@ -390,7 +390,7 @@ pub(crate) struct CtrlMsg {
|
|
|
|
|
/// union of all msg ids
|
|
|
|
|
#[derive(Debug, Clone, Eq, PartialEq, noproto::Oneof)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) enum CtrlMsgPayload {
|
|
|
|
|
pub enum CtrlMsgPayload {
|
|
|
|
|
/// * Requests *
|
|
|
|
|
#[noproto(tag = "101")]
|
|
|
|
|
ReqGetMacAddress(CtrlMsgReqGetMacAddress),
|
|
|
|
@ -492,7 +492,7 @@ pub(crate) enum CtrlMsgPayload {
|
|
|
|
|
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
|
|
|
|
|
#[repr(u32)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) enum CtrlVendorIeType {
|
|
|
|
|
pub enum CtrlVendorIeType {
|
|
|
|
|
#[default]
|
|
|
|
|
Beacon = 0,
|
|
|
|
|
ProbeReq = 1,
|
|
|
|
@ -504,7 +504,7 @@ pub(crate) enum CtrlVendorIeType {
|
|
|
|
|
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
|
|
|
|
|
#[repr(u32)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) enum CtrlVendorIeid {
|
|
|
|
|
pub enum CtrlVendorIeid {
|
|
|
|
|
#[default]
|
|
|
|
|
Id0 = 0,
|
|
|
|
|
Id1 = 1,
|
|
|
|
@ -513,7 +513,7 @@ pub(crate) enum CtrlVendorIeid {
|
|
|
|
|
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
|
|
|
|
|
#[repr(u32)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) enum CtrlWifiMode {
|
|
|
|
|
pub enum CtrlWifiMode {
|
|
|
|
|
#[default]
|
|
|
|
|
None = 0,
|
|
|
|
|
Sta = 1,
|
|
|
|
@ -524,7 +524,7 @@ pub(crate) enum CtrlWifiMode {
|
|
|
|
|
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
|
|
|
|
|
#[repr(u32)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) enum CtrlWifiBw {
|
|
|
|
|
pub enum CtrlWifiBw {
|
|
|
|
|
#[default]
|
|
|
|
|
BwInvalid = 0,
|
|
|
|
|
Ht20 = 1,
|
|
|
|
@ -534,15 +534,13 @@ pub(crate) enum CtrlWifiBw {
|
|
|
|
|
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
|
|
|
|
|
#[repr(u32)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) enum CtrlWifiPowerSave {
|
|
|
|
|
pub enum CtrlWifiPowerSave {
|
|
|
|
|
#[default]
|
|
|
|
|
PsInvalid = 0,
|
|
|
|
|
MinModem = 1,
|
|
|
|
|
MaxModem = 2,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Wifi Security Settings
|
|
|
|
|
#[allow(missing_docs)]
|
|
|
|
|
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
|
|
|
|
|
#[repr(u32)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
@ -562,7 +560,7 @@ pub enum CtrlWifiSecProt {
|
|
|
|
|
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
|
|
|
|
|
#[repr(u32)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) enum CtrlStatus {
|
|
|
|
|
pub enum CtrlStatus {
|
|
|
|
|
#[default]
|
|
|
|
|
Connected = 0,
|
|
|
|
|
NotConnected = 1,
|
|
|
|
@ -575,7 +573,7 @@ pub(crate) enum CtrlStatus {
|
|
|
|
|
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
|
|
|
|
|
#[repr(u32)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) enum CtrlMsgType {
|
|
|
|
|
pub enum CtrlMsgType {
|
|
|
|
|
#[default]
|
|
|
|
|
MsgTypeInvalid = 0,
|
|
|
|
|
Req = 1,
|
|
|
|
@ -587,7 +585,7 @@ pub(crate) enum CtrlMsgType {
|
|
|
|
|
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
|
|
|
|
|
#[repr(u32)]
|
|
|
|
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
|
|
|
|
pub(crate) enum CtrlMsgId {
|
|
|
|
|
pub enum CtrlMsgId {
|
|
|
|
|
#[default]
|
|
|
|
|
MsgIdInvalid = 0,
|
|
|
|
|
/// * Request Msgs *
|
|
|
|
|