pub trait PhyController<'d>: Sealed + ModemClockController<'d> {
// Provided methods
fn enable_phy(&self) -> PhyInitGuard<'d> { ... }
fn decrease_phy_ref_count(&self) { ... }
}Expand description
Common functionality for controlling PHY initialization.
Provided Methods§
fn enable_phy(&self) -> PhyInitGuard<'d>
Sourcefn decrease_phy_ref_count(&self)
fn decrease_phy_ref_count(&self)
Decreases the PHY init reference count for this modem ignoring currently alive PhyInitGuards.
This will also decrease the PHY clock ref count.
§Panics
This function panics if the PHY is inactive. If the ref count is lower than the number of alive PhyInitGuards, dropping a guard can now panic.
Implementations on Foreign Types§
impl<'d> PhyController<'d> for BT<'d>
Available on
bt only.impl<'d> PhyController<'d> for IEEE802154<'d>
Available on
ieee802154 only.