Trait ModemClockController

Source
pub trait ModemClockController<'d>: Sealed + 'd {
    // Required method
    fn enable_modem_clock(&mut self, enable: bool);

    // Provided methods
    fn enable_phy_clock(&self) -> PhyClockGuard<'d> { ... }
    fn decrease_phy_clock_ref_count(&self) { ... }
}
Available on crate feature unstable only.
Expand description

This trait provides common functionality for all

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Required Methods§

Source

fn enable_modem_clock(&mut self, enable: bool)

Enable the modem clock for this controller.

Provided Methods§

Source

fn enable_phy_clock(&self) -> PhyClockGuard<'d>

Enable the PHY clock and acquire a PhyClockGuard.

The PHY clock will only be disabled, once all PhyClockGuard’s of all modems were dropped.

Source

fn decrease_phy_clock_ref_count(&self)

Decreases the PHY clock reference count for this modem ignoring currently alive PhyClockGuards.

§Panics

This function panics if the PHY clock is inactive. If the ref count is lower than the number of alive PhyClockGuards, dropping a guard can now panic.

Implementors§

Source§

impl<'d> ModemClockController<'d> for BT<'d>

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Source§

impl<'d> ModemClockController<'d> for IEEE802154<'d>

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Source§

impl<'d> ModemClockController<'d> for WIFI<'d>

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.