PhyController

Trait PhyController 

Source
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§

Source

fn enable_phy(&self) -> PhyInitGuard<'d>

Source

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§

Source§

impl<'d> PhyController<'d> for BT<'d>

Available on bt only.
Source§

impl<'d> PhyController<'d> for WIFI<'d>

Available on wifi only.

Implementors§