pub struct TIM20 { /* private fields */ }
Expand description
TIM20 peripheral
Implementations§
Trait Implementations§
Source§impl AdvancedControlInstance for TIM20
impl AdvancedControlInstance for TIM20
Source§fn regs_advanced() -> TimAdv
fn regs_advanced() -> TimAdv
Get access to the advanced timer registers.
Source§impl Basic16bitInstance for TIM20
impl Basic16bitInstance for TIM20
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 BreakInput2Pin<TIM20> for PF10
impl BreakInput2Pin<TIM20> for PF10
Source§impl BreakInput2Pin<TIM20> for PF8
impl BreakInput2Pin<TIM20> for PF8
Source§impl BreakInput2Pin<TIM20> for PG4
impl BreakInput2Pin<TIM20> for PG4
Source§impl BreakInputPin<TIM20> for PF7
impl BreakInputPin<TIM20> for PF7
Source§impl BreakInputPin<TIM20> for PF9
impl BreakInputPin<TIM20> for PF9
Source§impl BreakInputPin<TIM20> for PG3
impl BreakInputPin<TIM20> for PG3
Source§impl BreakInputPin<TIM20> for PG6
impl BreakInputPin<TIM20> for PG6
Source§impl CaptureCompare16bitInstance for TIM20
impl CaptureCompare16bitInstance for TIM20
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<TIM20> for PE4
impl Channel1ComplementaryPin<TIM20> for PE4
Source§impl Channel1ComplementaryPin<TIM20> for PF4
impl Channel1ComplementaryPin<TIM20> for PF4
Source§impl Channel1ComplementaryPin<TIM20> for PG0
impl Channel1ComplementaryPin<TIM20> for PG0
Source§impl Channel1Pin<TIM20> for PB2
impl Channel1Pin<TIM20> for PB2
Source§impl Channel1Pin<TIM20> for PE2
impl Channel1Pin<TIM20> for PE2
Source§impl Channel1Pin<TIM20> for PF12
impl Channel1Pin<TIM20> for PF12
Source§impl Channel2ComplementaryPin<TIM20> for PE5
impl Channel2ComplementaryPin<TIM20> for PE5
Source§impl Channel2ComplementaryPin<TIM20> for PF5
impl Channel2ComplementaryPin<TIM20> for PF5
Source§impl Channel2ComplementaryPin<TIM20> for PG1
impl Channel2ComplementaryPin<TIM20> for PG1
Source§impl Channel2Pin<TIM20> for PC2
impl Channel2Pin<TIM20> for PC2
Source§impl Channel2Pin<TIM20> for PE3
impl Channel2Pin<TIM20> for PE3
Source§impl Channel2Pin<TIM20> for PF13
impl Channel2Pin<TIM20> for PF13
Source§impl Channel3ComplementaryPin<TIM20> for PE6
impl Channel3ComplementaryPin<TIM20> for PE6
Source§impl Channel3ComplementaryPin<TIM20> for PG2
impl Channel3ComplementaryPin<TIM20> for PG2
Source§impl Channel3Pin<TIM20> for PC8
impl Channel3Pin<TIM20> for PC8
Source§impl Channel3Pin<TIM20> for PF14
impl Channel3Pin<TIM20> for PF14
Source§impl Channel3Pin<TIM20> for PF2
impl Channel3Pin<TIM20> for PF2
Source§impl Channel4ComplementaryPin<TIM20> for PE0
impl Channel4ComplementaryPin<TIM20> for PE0
Source§impl Channel4ComplementaryPin<TIM20> for PG3
impl Channel4ComplementaryPin<TIM20> for PG3
Source§impl Channel4Pin<TIM20> for PE1
impl Channel4Pin<TIM20> for PE1
Source§impl Channel4Pin<TIM20> for PF15
impl Channel4Pin<TIM20> for PF15
Source§impl Channel4Pin<TIM20> for PF3
impl Channel4Pin<TIM20> for PF3
Source§impl ComplementaryCaptureCompare16bitInstance for TIM20
impl ComplementaryCaptureCompare16bitInstance for TIM20
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<TIM20> for PE0
impl ExternalTriggerPin<TIM20> for PE0
Source§impl ExternalTriggerPin<TIM20> for PF11
impl ExternalTriggerPin<TIM20> for PF11
Source§impl ExternalTriggerPin<TIM20> for PG5
impl ExternalTriggerPin<TIM20> for PG5
Source§impl GeneralPurpose16bitInstance for TIM20
impl GeneralPurpose16bitInstance for TIM20
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 TIM20
impl Peripheral for TIM20
Source§impl RccPeripheral for TIM20
impl RccPeripheral for TIM20
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 TIM20
impl Basic16bitInstance for TIM20
impl CaptureCompare16bitInstance for TIM20
impl ComplementaryCaptureCompare16bitInstance for TIM20
impl GeneralPurpose16bitInstance for TIM20
impl RccPeripheral for TIM20
Auto Trait Implementations§
impl Freeze for TIM20
impl RefUnwindSafe for TIM20
impl Send for TIM20
impl Sync for TIM20
impl Unpin for TIM20
impl UnwindSafe for TIM20
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