pub struct TimerCounterChannel<TC, CLK, const CH: u8, const FREQ: u32> { /* private fields */ }Implementations§
Source§impl<CLK, const CH: u8, const FREQ: u32> TimerCounterChannel<TC0, CLK, CH, FREQ>
impl<CLK, const CH: u8, const FREQ: u32> TimerCounterChannel<TC0, CLK, CH, FREQ>
Sourcepub fn clock_input(&mut self, source: ClockSource)
pub fn clock_input(&mut self, source: ClockSource)
Set the input clock
Sourcepub fn enable_interrupt(&mut self)
pub fn enable_interrupt(&mut self)
Enable the interrupt for this TimerCounterChannel NOTE: The interrupt used will be TC * 3 + CH e.g. TC:1 CH:2 => 1 * 3 + 2 = 5
Sourcepub fn disable_interrupt(&mut self)
pub fn disable_interrupt(&mut self)
Disables the interrupt for this TimerCounterChannel
Sourcepub fn clear_interrupt_flags(&mut self) -> bool
pub fn clear_interrupt_flags(&mut self) -> bool
Clear interrupt status
Source§impl<CLK, const CH: u8, const FREQ: u32> TimerCounterChannel<TC1, CLK, CH, FREQ>
impl<CLK, const CH: u8, const FREQ: u32> TimerCounterChannel<TC1, CLK, CH, FREQ>
Sourcepub fn clock_input(&mut self, source: ClockSource)
pub fn clock_input(&mut self, source: ClockSource)
Set the input clock
Sourcepub fn enable_interrupt(&mut self)
pub fn enable_interrupt(&mut self)
Enable the interrupt for this TimerCounterChannel NOTE: The interrupt used will be TC * 3 + CH e.g. TC:1 CH:2 => 1 * 3 + 2 = 5
Sourcepub fn disable_interrupt(&mut self)
pub fn disable_interrupt(&mut self)
Disables the interrupt for this TimerCounterChannel
Sourcepub fn clear_interrupt_flags(&mut self) -> bool
pub fn clear_interrupt_flags(&mut self) -> bool
Clear interrupt status
Source§impl<CLK, const CH: u8, const FREQ: u32> TimerCounterChannel<TC2, CLK, CH, FREQ>
impl<CLK, const CH: u8, const FREQ: u32> TimerCounterChannel<TC2, CLK, CH, FREQ>
Sourcepub fn clock_input(&mut self, source: ClockSource)
pub fn clock_input(&mut self, source: ClockSource)
Set the input clock
Sourcepub fn enable_interrupt(&mut self)
pub fn enable_interrupt(&mut self)
Enable the interrupt for this TimerCounterChannel NOTE: The interrupt used will be TC * 3 + CH e.g. TC:1 CH:2 => 1 * 3 + 2 = 5
Sourcepub fn disable_interrupt(&mut self)
pub fn disable_interrupt(&mut self)
Disables the interrupt for this TimerCounterChannel
Sourcepub fn clear_interrupt_flags(&mut self) -> bool
pub fn clear_interrupt_flags(&mut self) -> bool
Clear interrupt status
Trait Implementations§
Source§impl<CLK, const CH: u8, const FREQ: u32> CountDown for TimerCounterChannel<TC0, CLK, CH, FREQ>
impl<CLK, const CH: u8, const FREQ: u32> CountDown for TimerCounterChannel<TC0, CLK, CH, FREQ>
Source§impl<CLK, const CH: u8, const FREQ: u32> CountDown for TimerCounterChannel<TC1, CLK, CH, FREQ>
impl<CLK, const CH: u8, const FREQ: u32> CountDown for TimerCounterChannel<TC1, CLK, CH, FREQ>
Source§impl<CLK, const CH: u8, const FREQ: u32> CountDown for TimerCounterChannel<TC2, CLK, CH, FREQ>
impl<CLK, const CH: u8, const FREQ: u32> CountDown for TimerCounterChannel<TC2, CLK, CH, FREQ>
impl<CLK, const CH: u8, const FREQ: u32> Periodic for TimerCounterChannel<TC0, CLK, CH, FREQ>
impl<CLK, const CH: u8, const FREQ: u32> Periodic for TimerCounterChannel<TC1, CLK, CH, FREQ>
impl<CLK, const CH: u8, const FREQ: u32> Periodic for TimerCounterChannel<TC2, CLK, CH, FREQ>
Auto Trait Implementations§
impl<TC, CLK, const CH: u8, const FREQ: u32> Freeze for TimerCounterChannel<TC, CLK, CH, FREQ>
impl<TC, CLK, const CH: u8, const FREQ: u32> RefUnwindSafe for TimerCounterChannel<TC, CLK, CH, FREQ>where
CLK: RefUnwindSafe,
TC: RefUnwindSafe,
impl<TC, CLK, const CH: u8, const FREQ: u32> Send for TimerCounterChannel<TC, CLK, CH, FREQ>
impl<TC, CLK, const CH: u8, const FREQ: u32> Sync for TimerCounterChannel<TC, CLK, CH, FREQ>
impl<TC, CLK, const CH: u8, const FREQ: u32> Unpin for TimerCounterChannel<TC, CLK, CH, FREQ>
impl<TC, CLK, const CH: u8, const FREQ: u32> UnwindSafe for TimerCounterChannel<TC, CLK, CH, FREQ>where
CLK: UnwindSafe,
TC: UnwindSafe,
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