pub struct TimId(/* private fields */);Implementations§
Source§impl TimId
impl TimId
pub const fn new(index: usize) -> Result<Self, InvalidTimerIndex>
pub const fn new_unchecked(index: usize) -> Self
Sourcepub const unsafe fn steal_regs(&self) -> MmioTimer<'static>
pub const unsafe fn steal_regs(&self) -> MmioTimer<'static>
Unsafely steal the TIM peripheral block for the TIM ID.
§Safety
Circumvents ownership and safety guarantees by the HAL.
pub const fn value(&self) -> u8
Trait Implementations§
impl Copy for TimId
impl Eq for TimId
impl StructuralPartialEq for TimId
Auto Trait Implementations§
impl Freeze for TimId
impl RefUnwindSafe for TimId
impl Send for TimId
impl Sync for TimId
impl Unpin for TimId
impl UnwindSafe for TimId
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