kernel::hil::radio

Trait PowerClient

Source
pub trait PowerClient {
    // Required method
    fn changed(&self, on: bool);
}
Expand description

Client for callbacks when the radio’s power state changes.

Required Methods§

Source

fn changed(&self, on: bool)

The power state of the radio changed. This is called when the radio has turned on or off.

§Arguments
  • on: True if the radio is now on. False otherwise.

Implementors§