Struct embassy_stm32::peripherals::TIM1
source · pub struct TIM1 { /* private fields */ }
Expand description
TIM1 peripheral
Implementations§
Trait Implementations§
source§impl AdvancedControlInstance for TIM1
impl AdvancedControlInstance for TIM1
source§fn regs_advanced() -> TimAdv
fn regs_advanced() -> TimAdv
Get access to the advanced timer registers.
source§impl Basic16bitInstance for TIM1
impl Basic16bitInstance for TIM1
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 BreakInput2Comparator1Pin<TIM1> for PE6
impl BreakInput2Comparator1Pin<TIM1> for PE6
source§impl BreakInput2Comparator2Pin<TIM1> for PE6
impl BreakInput2Comparator2Pin<TIM1> for PE6
source§impl BreakInput2Pin<TIM1> for PE6
impl BreakInput2Pin<TIM1> for PE6
source§impl BreakInputComparator1Pin<TIM1> for PA6
impl BreakInputComparator1Pin<TIM1> for PA6
source§impl BreakInputComparator1Pin<TIM1> for PB12
impl BreakInputComparator1Pin<TIM1> for PB12
source§impl BreakInputComparator1Pin<TIM1> for PE15
impl BreakInputComparator1Pin<TIM1> for PE15
source§impl BreakInputComparator2Pin<TIM1> for PA6
impl BreakInputComparator2Pin<TIM1> for PA6
source§impl BreakInputComparator2Pin<TIM1> for PB12
impl BreakInputComparator2Pin<TIM1> for PB12
source§impl BreakInputComparator2Pin<TIM1> for PE15
impl BreakInputComparator2Pin<TIM1> for PE15
source§impl BreakInputPin<TIM1> for PA6
impl BreakInputPin<TIM1> for PA6
source§impl BreakInputPin<TIM1> for PB12
impl BreakInputPin<TIM1> for PB12
source§impl BreakInputPin<TIM1> for PE15
impl BreakInputPin<TIM1> for PE15
source§impl CaptureCompare16bitInstance for TIM1
impl CaptureCompare16bitInstance for TIM1
source§fn enable_outputs(&mut self)
fn enable_outputs(&mut self)
Enable timer outputs.
source§fn set_input_capture_filter(&mut self, channel: Channel, icf: Icf)
fn set_input_capture_filter(&mut self, channel: Channel, icf: Icf)
Set input capture filter.
source§fn clear_input_interrupt(&mut self, channel: Channel)
fn clear_input_interrupt(&mut self, channel: Channel)
Clear input interrupt.
source§fn enable_input_interrupt(&mut self, channel: Channel, enable: bool)
fn enable_input_interrupt(&mut self, channel: Channel, enable: bool)
Enable input interrupt.
source§fn set_input_capture_prescaler(&mut self, channel: Channel, factor: u8)
fn set_input_capture_prescaler(&mut self, channel: Channel, factor: u8)
Set input capture prescaler.
source§fn set_input_ti_selection(&mut self, channel: Channel, tisel: InputTISelection)
fn set_input_ti_selection(&mut self, channel: Channel, tisel: InputTISelection)
Set input TI selection.
source§fn set_input_capture_mode(&mut self, channel: Channel, mode: InputCaptureMode)
fn set_input_capture_mode(&mut self, channel: Channel, mode: InputCaptureMode)
Set input capture mode.
source§fn set_output_compare_mode(&mut self, channel: Channel, mode: OutputCompareMode)
fn set_output_compare_mode(&mut self, channel: Channel, mode: OutputCompareMode)
Set output compare mode.
source§fn set_output_polarity(&mut self, channel: Channel, polarity: OutputPolarity)
fn set_output_polarity(&mut self, channel: Channel, polarity: OutputPolarity)
Set output polarity.
source§fn enable_channel(&mut self, channel: Channel, enable: bool)
fn enable_channel(&mut self, channel: Channel, enable: bool)
Enable/disable a channel.
source§fn get_channel_enable_state(&self, channel: Channel) -> bool
fn get_channel_enable_state(&self, channel: Channel) -> bool
Get enable/disable state of a channel
source§fn set_compare_value(&mut self, channel: Channel, value: u16)
fn set_compare_value(&mut self, channel: Channel, value: u16)
Set compare value for a channel.
source§fn get_capture_value(&mut self, channel: Channel) -> u16
fn get_capture_value(&mut self, channel: Channel) -> u16
Get capture value for a channel.
source§fn get_max_compare_value(&self) -> u16
fn get_max_compare_value(&self) -> u16
Get max compare value. This depends on the timer frequency and the clock frequency from RCC.
source§fn get_compare_value(&self, channel: Channel) -> u16
fn get_compare_value(&self, channel: Channel) -> u16
Get compare value for a channel.
source§fn set_output_compare_preload(&mut self, channel: Channel, preload: bool)
fn set_output_compare_preload(&mut self, channel: Channel, preload: bool)
Set output compare preload.
source§impl Channel1ComplementaryPin<TIM1> for PA7
impl Channel1ComplementaryPin<TIM1> for PA7
source§impl Channel1ComplementaryPin<TIM1> for PB13
impl Channel1ComplementaryPin<TIM1> for PB13
source§impl Channel1ComplementaryPin<TIM1> for PE8
impl Channel1ComplementaryPin<TIM1> for PE8
source§impl Channel1Pin<TIM1> for PA8
impl Channel1Pin<TIM1> for PA8
source§impl Channel1Pin<TIM1> for PE9
impl Channel1Pin<TIM1> for PE9
source§impl Channel2ComplementaryPin<TIM1> for PB0
impl Channel2ComplementaryPin<TIM1> for PB0
source§impl Channel2ComplementaryPin<TIM1> for PB14
impl Channel2ComplementaryPin<TIM1> for PB14
source§impl Channel2ComplementaryPin<TIM1> for PE10
impl Channel2ComplementaryPin<TIM1> for PE10
source§impl Channel2Pin<TIM1> for PA9
impl Channel2Pin<TIM1> for PA9
source§impl Channel2Pin<TIM1> for PE11
impl Channel2Pin<TIM1> for PE11
source§impl Channel3ComplementaryPin<TIM1> for PB1
impl Channel3ComplementaryPin<TIM1> for PB1
source§impl Channel3ComplementaryPin<TIM1> for PB15
impl Channel3ComplementaryPin<TIM1> for PB15
source§impl Channel3ComplementaryPin<TIM1> for PE12
impl Channel3ComplementaryPin<TIM1> for PE12
source§impl Channel3Pin<TIM1> for PA10
impl Channel3Pin<TIM1> for PA10
source§impl Channel3Pin<TIM1> for PE13
impl Channel3Pin<TIM1> for PE13
source§impl Channel4Pin<TIM1> for PA11
impl Channel4Pin<TIM1> for PA11
source§impl Channel4Pin<TIM1> for PE14
impl Channel4Pin<TIM1> for PE14
source§impl ComplementaryCaptureCompare16bitInstance for TIM1
impl ComplementaryCaptureCompare16bitInstance for TIM1
source§fn set_complementary_output_polarity(
&mut self,
channel: Channel,
polarity: OutputPolarity
)
fn set_complementary_output_polarity( &mut self, channel: Channel, polarity: OutputPolarity )
Set complementary output polarity.
source§fn set_dead_time_clock_division(&mut self, value: Ckd)
fn set_dead_time_clock_division(&mut self, value: Ckd)
Set clock divider for the dead time.
source§fn set_dead_time_value(&mut self, value: u8)
fn set_dead_time_value(&mut self, value: u8)
Set dead time, as a fraction of the max duty value.
source§fn enable_complementary_channel(&mut self, channel: Channel, enable: bool)
fn enable_complementary_channel(&mut self, channel: Channel, enable: bool)
Enable/disable a complementary channel.
source§impl ExternalTriggerPin<TIM1> for PA12
impl ExternalTriggerPin<TIM1> for PA12
source§impl ExternalTriggerPin<TIM1> for PE7
impl ExternalTriggerPin<TIM1> for PE7
source§impl GeneralPurpose16bitInstance for TIM1
impl GeneralPurpose16bitInstance for TIM1
source§fn set_counting_mode(&mut self, mode: CountingMode)
fn set_counting_mode(&mut self, mode: CountingMode)
Set counting mode.
source§fn get_counting_mode(&self) -> CountingMode
fn get_counting_mode(&self) -> CountingMode
Get counting mode.
source§fn set_clock_division(&mut self, ckd: Ckd)
fn set_clock_division(&mut self, ckd: Ckd)
Set clock divider.
source§impl Peripheral for TIM1
impl Peripheral for TIM1
source§impl RccPeripheral for TIM1
impl RccPeripheral for TIM1
fn frequency() -> Hertz
fn enable_and_reset_with_cs(_cs: CriticalSection<'_>)
fn disable_with_cs(_cs: CriticalSection<'_>)
fn enable_and_reset()
fn disable()
impl AdvancedControlInstance for TIM1
impl Basic16bitInstance for TIM1
impl CaptureCompare16bitInstance for TIM1
impl ComplementaryCaptureCompare16bitInstance for TIM1
impl GeneralPurpose16bitInstance for TIM1
impl RccPeripheral for TIM1
Auto Trait Implementations§
impl RefUnwindSafe for TIM1
impl Send for TIM1
impl Sync for TIM1
impl Unpin for TIM1
impl UnwindSafe for TIM1
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