pub struct SpecificUnit<'d, const CHANNEL: u8>(/* private fields */);Expand description
A specific Unit. i.e. Either unit 0 or unit 1.
Implementations§
Source§impl SpecificUnit<'static, 0>
impl SpecificUnit<'static, 0>
Trait Implementations§
Source§impl<'d, const CHANNEL: u8> Debug for SpecificUnit<'d, CHANNEL>
impl<'d, const CHANNEL: u8> Debug for SpecificUnit<'d, CHANNEL>
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<const CHANNEL: u8> Unit for SpecificUnit<'_, CHANNEL>
impl<const CHANNEL: u8> Unit for SpecificUnit<'_, CHANNEL>
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, const CHANNEL: u8> Freeze for SpecificUnit<'d, CHANNEL>
impl<'d, const CHANNEL: u8> RefUnwindSafe for SpecificUnit<'d, CHANNEL>
impl<'d, const CHANNEL: u8> Send for SpecificUnit<'d, CHANNEL>
impl<'d, const CHANNEL: u8> Sync for SpecificUnit<'d, CHANNEL>
impl<'d, const CHANNEL: u8> Unpin for SpecificUnit<'d, CHANNEL>
impl<'d, const CHANNEL: u8> UnwindSafe for SpecificUnit<'d, CHANNEL>
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