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§


fn changed(&self, on: bool)

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

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