Struct hc12_at::hc12::Hc12 [−][src]
pub struct Hc12<S, P, D, M> where
S: Read<u8> + Write<u8>,
P: OutputPin,
D: DelayMs<u32>, { /* fields omitted */ }
Expand description
Hc12 resources: A serial port, an output pin, and a Delay.
Implementations
Implementation for normal mode of Hc12
Write entire buffer to serial port
Read entire buffer from serial port
pub fn into_configuration_mode(
self
) -> Result<Hc12<S, P, D, Configuration>, Hc12<S, P, D, Normal>>
pub fn into_configuration_mode(
self
) -> Result<Hc12<S, P, D, Configuration>, Hc12<S, P, D, Normal>>
Move Hc12 in normal mode to Hc12 in config mode
Implementation for Hc12 in config mode.
Move Hc12 in config mode back to normal mode.
Move Hc12 in config mode into sleeping mode.
Get version as a string from Hc12
Reset Hc12 to default settings.
Get parameters of Hc12
Implementation for Hc12 in sleeping mode.
pub fn into_configuration_mode(
self
) -> Result<Hc12<S, P, D, Configuration>, Hc12<S, P, D, Sleep>>
pub fn into_configuration_mode(
self
) -> Result<Hc12<S, P, D, Configuration>, Hc12<S, P, D, Sleep>>
Move Hc12 in sleeping mode back to configuration mode.
Trait Implementations
Implement Read for Hc12 in normal mode This just defers to the underlying serial implementation.
Implement Write for Hc12 in normal mode. This just defers to the underlying serial implementation.