pub struct AnyUnit<'d>(/* private fields */);Expand description
Any Unit. Could be either unit 0 or unit 1.
Trait Implementations§
Source§impl<'d, const CHANNEL: u8> From<SpecificUnit<'d, CHANNEL>> for AnyUnit<'d>
impl<'d, const CHANNEL: u8> From<SpecificUnit<'d, CHANNEL>> for AnyUnit<'d>
Source§fn from(_value: SpecificUnit<'d, CHANNEL>) -> Self
fn from(_value: SpecificUnit<'d, CHANNEL>) -> Self
Converts to this type from the input type.
Source§impl Unit for AnyUnit<'_>
impl Unit for AnyUnit<'_>
Source§fn configure(&self, config: UnitConfig)
fn configure(&self, config: UnitConfig)
Configures when this counter can run.
It can be configured to stall or continue running when CPU stalls
or enters on-chip-debugging mode
Source§fn set_count(&self, value: u64)
fn set_count(&self, value: u64)
Set the value of the counter immediately. If the unit is at work,
the counter will continue to count up from the new reloaded value. Read more
Source§fn read_count(&self) -> u64
fn read_count(&self) -> u64
Reads the current counter value.
Auto Trait Implementations§
impl<'d> Freeze for AnyUnit<'d>
impl<'d> RefUnwindSafe for AnyUnit<'d>
impl<'d> Send for AnyUnit<'d>
impl<'d> Sync for AnyUnit<'d>
impl<'d> Unpin for AnyUnit<'d>
impl<'d> UnwindSafe for AnyUnit<'d>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more