pub struct TIM18 { /* private fields */ }
Expand description
TIM18 peripheral
Implementations§
Trait Implementations§
Source§impl Basic16bitInstance for TIM18
impl Basic16bitInstance for TIM18
Source§type Interrupt = TIM18_DAC2
type Interrupt = TIM18_DAC2
Interrupt for this timer.
Source§fn set_frequency(&mut self, frequency: Hertz)
fn set_frequency(&mut self, frequency: Hertz)
Set the frequency of how many times per second the timer counts up to the max value or down to 0. Read more
Source§fn clear_update_interrupt(&mut self) -> bool
fn clear_update_interrupt(&mut self) -> bool
Clear update interrupt. Read more
Source§fn enable_update_interrupt(&mut self, enable: bool)
fn enable_update_interrupt(&mut self, enable: bool)
Enable/disable the update interrupt.
Source§fn enable_update_dma(&mut self, enable: bool)
fn enable_update_dma(&mut self, enable: bool)
Enable/disable the update dma.
Source§fn get_update_dma_state(&self) -> bool
fn get_update_dma_state(&self) -> bool
Get the update dma enable/disable state.
Source§fn set_autoreload_preload(&mut self, enable: bool)
fn set_autoreload_preload(&mut self, enable: bool)
Enable/disable autoreload preload.
Source§fn get_frequency(&self) -> Hertz
fn get_frequency(&self) -> Hertz
Get the timer frequency.
Source§impl Peripheral for TIM18
impl Peripheral for TIM18
Source§impl RccPeripheral for TIM18
impl RccPeripheral for TIM18
fn frequency() -> Hertz
fn enable_and_reset_with_cs(_cs: CriticalSection<'_>)
fn disable_with_cs(_cs: CriticalSection<'_>)
fn enable_and_reset()
fn disable()
impl Basic16bitInstance for TIM18
impl RccPeripheral for TIM18
Auto Trait Implementations§
impl Freeze for TIM18
impl RefUnwindSafe for TIM18
impl Send for TIM18
impl Sync for TIM18
impl Unpin for TIM18
impl UnwindSafe for TIM18
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