Power

Trait Power 

Source
pub trait Power {
    // Required methods
    async fn power_on(&mut self);
    async fn power_off(&mut self);
}
Expand description

Board-specific power sequencing for one receiver.

Implementations live in each BSP, because this is the only part that genuinely differs: an enable pin here, a standby pin there, a reset pulse on one board and not another.

Required Methods§

Source

async fn power_on(&mut self)

Bring the receiver up and leave it emitting sentences.

Idempotent: the pump calls it whenever it believes the receiver should be running, including after an error.

Source

async fn power_off(&mut self)

Put the receiver in the lowest power state this board can reach.

On a board whose receiver holds the only surviving real-time clock, that state keeps the backup domain alive — which is not an exception to “off means off” so much as a statement that the domain in question is a clock rather than a receiver.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§