Expand description
Derive crate for ATAT
This crate provides derive macros for automatically deriving
atat::AtatCmd, atat::AtatResp, atat::AtatUrc, atat::AtatEnum
and atat::AtatLen
§Examples
§AtatCmd
See AtatCmd for descriptions and documentation on required and allowed
attributes
ⓘ
// Serializing the following struct, results in `AT+USORD=<socket>,<length>\r`
#[derive(AtatCmd)]
#[at_cmd("+USORD", SocketData)]
pub struct ReadSocketData {
#[at_arg(position = 0)]
pub socket: u8,
#[at_arg(position = 1)]
pub length: usize,
}Derive Macros§
- AtatCmd
- Automatically derive
atat::AtatCmdtrait - Atat
Enum - Automatically derive
atat::AtatEnumtrait - AtatLen
- Automatically derive
atat::AtatLentrait - Atat
Resp - Automatically derive
atat::AtatResptrait - AtatUrc
- Automatically derive
atat::AtatUrctrait