Expand description
An interface for interacting with ESP-Hosted-MCU firmware, via UART.
Re-exports§
pub use proto_data::*;
pub use rf::*;
Modules§
- Rpc_
- Rpc_
Event_ StaConnected_ - Rpc_
Event_ StaDisconnected_ - Rpc_
Event_ StaScan Done_ - Rpc_
Req_ Wifi Init_ - Rpc_
Req_ Wifi Scan Start_ - Rpc_
Req_ Wifi SetBandwidths_ - Rpc_
Req_ Wifi SetConfig_ - Rpc_
Req_ Wifi SetCountry_ - Rpc_
Req_ Wifi SetProtocols_ - Rpc_
Resp_ Wifi ApGet StaList_ - Rpc_
Resp_ Wifi GetBandwidths_ - Rpc_
Resp_ Wifi GetConfig_ - Rpc_
Resp_ Wifi GetCountry_ - Rpc_
Resp_ Wifi GetProtocols_ - Rpc_
Resp_ Wifi Scan GetAp Record_ - Rpc_
Resp_ Wifi StaGet ApInfo_ - proto_
data - Contains data types specific to the ESP-Hosted-MCU proto buffer. This contains definitions for the data types [de]serialized. They’re not automatically generated from the .proto file, and are used in our higher-level API.
- rf
- This module contains Wi-Fi and BLE-specific functionality.
- wifi_
ap_ config_ - wifi_
ap_ record_ - wifi_
config_ - wifi_
csi_ info_ - wifi_
promiscuous_ pkt_ - wifi_
scan_ config_ - wifi_
scan_ time_ - wifi_
sta_ config_
Macros§
Structs§
- ConnectedSTA
List - Parsed
Msg - Payload
Header - Adapted from
esp-hosted-mcu/common/esp_hosted_header.h
This is at the start of the message, and is followed by the RPC header. See ESP-hosted-MCU readme, section 7.1. - Rpc
- RpcId
- RpcIdP
- RpcP
- RpcType
- RpcTypeP
- Rpc_
Event_ AP_ StaConnected - Rpc_
Event_ AP_ StaDisconnected - Rpc_
Event_ ESPInit - Rpc_
Event_ Heartbeat - Rpc_
Event_ StaConnected - Rpc_
Event_ StaDisconnected - Rpc_
Event_ StaScan Done - Rpc_
Event_ Wifi Event NoArgs - Rpc_
Req_ Config Heartbeat - Rpc_
Req_ GetCoprocessor FwVersion - Rpc_
Req_ GetMac Address - Rpc_
Req_ GetMode - Rpc_
Req_ GetPs - Rpc_
Req_ OTABegin - Rpc_
Req_ OTAEnd - Rpc_
Req_ OTAWrite - Rpc_
Req_ SetMac Address - Rpc_
Req_ SetMode - Rpc_
Req_ SetPs - Rpc_
Req_ Wifi ApGet StaAid - Rpc_
Req_ Wifi ApGet StaList - Rpc_
Req_ Wifi Clear ApList - Rpc_
Req_ Wifi Clear Fast Connect - Rpc_
Req_ Wifi Connect - Rpc_
Req_ Wifi Deauth Sta - Rpc_
Req_ Wifi Deinit - Rpc_
Req_ Wifi Disconnect - Rpc_
Req_ Wifi GetBand - Rpc_
Req_ Wifi GetBand Mode - Rpc_
Req_ Wifi GetBandwidth - Rpc_
Req_ Wifi GetBandwidths - Rpc_
Req_ Wifi GetChannel - Rpc_
Req_ Wifi GetConfig - Rpc_
Req_ Wifi GetCountry - Rpc_
Req_ Wifi GetCountry Code - Rpc_
Req_ Wifi GetMax TxPower - Rpc_
Req_ Wifi GetProtocol - Rpc_
Req_ Wifi GetProtocols - Rpc_
Req_ Wifi Init - Rpc_
Req_ Wifi Restore - Rpc_
Req_ Wifi Scan GetAp Num - Rpc_
Req_ Wifi Scan GetAp Record - Rpc_
Req_ Wifi Scan GetAp Records - Rpc_
Req_ Wifi Scan Start - Rpc_
Req_ Wifi Scan Stop - Rpc_
Req_ Wifi SetBand - Rpc_
Req_ Wifi SetBand Mode - Rpc_
Req_ Wifi SetBandwidth - Rpc_
Req_ Wifi SetBandwidths - Rpc_
Req_ Wifi SetChannel - Rpc_
Req_ Wifi SetConfig - Rpc_
Req_ Wifi SetCountry - Rpc_
Req_ Wifi SetCountry Code - Rpc_
Req_ Wifi SetMax TxPower - Rpc_
Req_ Wifi SetProtocol - Rpc_
Req_ Wifi SetProtocols - Rpc_
Req_ Wifi SetStorage - Rpc_
Req_ Wifi StaGet Aid - Rpc_
Req_ Wifi StaGet ApInfo - Rpc_
Req_ Wifi StaGet Negotiated Phymode - Rpc_
Req_ Wifi StaGet Rssi - Rpc_
Req_ Wifi Start - Rpc_
Req_ Wifi Stop - Rpc_
Resp_ Config Heartbeat - Rpc_
Resp_ GetCoprocessor FwVersion - Rpc_
Resp_ GetMac Address - Rpc_
Resp_ GetMode - Rpc_
Resp_ GetPs - Rpc_
Resp_ OTABegin - Rpc_
Resp_ OTAEnd - Rpc_
Resp_ OTAWrite - Rpc_
Resp_ SetMac Address - Rpc_
Resp_ SetMode - Rpc_
Resp_ SetPs - Rpc_
Resp_ Wifi ApGet StaAid - Rpc_
Resp_ Wifi ApGet StaList - Rpc_
Resp_ Wifi Clear ApList - Rpc_
Resp_ Wifi Clear Fast Connect - Rpc_
Resp_ Wifi Connect - Rpc_
Resp_ Wifi Deauth Sta - Rpc_
Resp_ Wifi Deinit - Rpc_
Resp_ Wifi Disconnect - Rpc_
Resp_ Wifi GetBand - Rpc_
Resp_ Wifi GetBand Mode - Rpc_
Resp_ Wifi GetBandwidth - Rpc_
Resp_ Wifi GetBandwidths - Rpc_
Resp_ Wifi GetChannel - Rpc_
Resp_ Wifi GetConfig - Rpc_
Resp_ Wifi GetCountry - Rpc_
Resp_ Wifi GetCountry Code - Rpc_
Resp_ Wifi GetMax TxPower - Rpc_
Resp_ Wifi GetProtocol - Rpc_
Resp_ Wifi GetProtocols - Rpc_
Resp_ Wifi Init - Rpc_
Resp_ Wifi Restore - Rpc_
Resp_ Wifi Scan GetAp Num - Rpc_
Resp_ Wifi Scan GetAp Record - Rpc_
Resp_ Wifi Scan GetAp Records - Rpc_
Resp_ Wifi Scan Start - Rpc_
Resp_ Wifi Scan Stop - Rpc_
Resp_ Wifi SetBand - Rpc_
Resp_ Wifi SetBand Mode - Rpc_
Resp_ Wifi SetBandwidth - Rpc_
Resp_ Wifi SetBandwidths - Rpc_
Resp_ Wifi SetChannel - Rpc_
Resp_ Wifi SetConfig - Rpc_
Resp_ Wifi SetCountry - Rpc_
Resp_ Wifi SetCountry Code - Rpc_
Resp_ Wifi SetMax TxPower - Rpc_
Resp_ Wifi SetProtocol - Rpc_
Resp_ Wifi SetProtocols - Rpc_
Resp_ Wifi SetStorage - Rpc_
Resp_ Wifi StaGet Aid - Rpc_
Resp_ Wifi StaGet ApInfo - Rpc_
Resp_ Wifi StaGet Negotiated Phymode - Rpc_
Resp_ Wifi StaGet Rssi - Rpc_
Resp_ Wifi Start - Rpc_
Resp_ Wifi Stop - ap_cred
- wifi_
action_ tx_ req - wifi_
active_ scan_ time - wifi_
ant_ config - wifi_
ant_ gpio - wifi_
ant_ gpio_ config - wifi_
ap_ config - wifi_
ap_ record - wifi_
bandwidths - wifi_
config - wifi_
country - wifi_
csi_ config - wifi_
csi_ info - wifi_
event_ action_ tx_ status - wifi_
event_ ap_ probe_ req_ rx - wifi_
event_ ap_ wps_ rg_ fail_ reason - wifi_
event_ ap_ wps_ rg_ pin - wifi_
event_ ap_ wps_ rg_ success - wifi_
event_ bss_ rssi_ low - wifi_
event_ ftm_ report - wifi_
event_ roc_ done - wifi_
event_ sta_ authmode_ change - wifi_
event_ sta_ connected - wifi_
event_ sta_ disconnected - wifi_
event_ sta_ scan_ done - wifi_
event_ sta_ wps_ er_ pin - wifi_
event_ sta_ wps_ er_ success - wifi_
ftm_ initiator_ cfg - wifi_
ftm_ report_ entry - wifi_
he_ ap_ info - wifi_
init_ config - wifi_
pkt_ rx_ ctrl - wifi_
pmf_ config - wifi_
promiscuous_ filter - wifi_
promiscuous_ pkt - wifi_
protocols - wifi_
scan_ config - wifi_
scan_ threshold - wifi_
scan_ time - wifi_
sta_ config - wifi_
sta_ info - wifi_
sta_ list
Enums§
- EspError
- A simple error enum for our host-side protocol
- Interface
Type - Wire
Type - https://protobuf.dev/programming-guides/encoding/
Constants§
Functions§
- cfg_
heartbeat - parse_
msg - Parse the payload header, and separate the RPC bytes from the whole message. Accepts the whole message received.
- setup_
rpc_ proto - Sets up an RPC command using the direct protbuffer decoding. This is flexible, and allows writing arbitrary commands.
- write_
rpc_ proto