pub struct PhyClockGuard<'d> { /* private fields */ }
Available on crate feature
unstable
only.Expand description
Prevents the PHY clock from being disabled.
As long as at least one PhyClockGuard exists, the PHY clock will remain active. To release this guard, you can either let it go out of scope or use PhyClockGuard::release to explicitly release it.
§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.
Implementations§
Source§impl PhyClockGuard<'_>
impl PhyClockGuard<'_>
Sourcepub fn release(self)
pub fn release(self)
Release the clock guard.
The PHY clock will be disabled, if this is the last clock guard.
§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.