Trait kernel::hil::radio::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§