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

Construct an Hc12 in normal mode

Release the contained resources

Write entire buffer to serial port

Read entire buffer from serial port

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.

Check if Hc12 responds to “AT” query with “OK”.

Get version as a string from Hc12

Reset Hc12 to default settings.

Get parameters of Hc12

Implementation for Hc12 in sleeping mode.

Move Hc12 in sleeping mode back to configuration mode.

Trait Implementations

Formats the value using the given formatter. Read more

Implement Read for Hc12 in normal mode This just defers to the underlying serial implementation.

Read error

Reads a single word from the serial interface

Implement Write for Hc12 in normal mode. This just defers to the underlying serial implementation.

Write error

Writes a single word to the serial interface

Ensures that none of the previously written words are still buffered

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.