TIM5

Type Alias TIM5 

Source
pub type TIM5 = Periph<RegisterBlock, 1073744896>;
Expand description

General purpose timer

See peripheral structure

Aliased Type§

pub struct TIM5 { /* private fields */ }

Trait Implementations§

Source§

impl Enable for TIM5

Source§

fn enable(rcc: &mut RCC)

Enables peripheral
Source§

fn disable(rcc: &mut RCC)

Disables peripheral
Source§

fn is_enabled() -> bool

Check if peripheral enabled
Source§

fn is_disabled() -> bool

Check if peripheral disabled
Source§

unsafe fn enable_unchecked()

Safety Read more
Source§

unsafe fn disable_unchecked()

Safety Read more
Source§

impl GeneralTimer for TIM5

Source§

fn reset_config(&mut self)

Source§

fn enable_counter(&mut self)

Source§

fn disable_counter(&mut self)

Source§

fn is_counter_enabled(&self) -> bool

Source§

fn reset_counter(&mut self)

Source§

fn max_auto_reload() -> u32

Source§

unsafe fn set_auto_reload_unchecked(&mut self, arr: u32)

Safety Read more
Source§

fn set_auto_reload(&mut self, arr: u32) -> Result<(), Error>

Source§

fn read_auto_reload(&self) -> u32

Source§

fn set_prescaler(&mut self, psc: u16)

Source§

fn read_prescaler(&self) -> u16

Source§

fn read_count(&self) -> u32

Source§

fn trigger_update(&mut self)

Source§

fn config_freq(&mut self, clock: Hertz, update_freq: Hertz)

Source§

fn clear_interrupt_flag(&mut self, event: Event)

Source§

fn listen_interrupt(&mut self, event: Event, b: bool)

Source§

fn get_interrupt_flag(&self) -> Event

Source§

fn start_one_pulse(&mut self)

Source§

fn stop_in_debug(&mut self, state: bool)

Source§

fn enable_preload(&mut self, b: bool)

Source§

impl MasterTimer for TIM5

Source§

fn master_mode(&mut self, mode: MasterMode)

Source§

impl RccBus for TIM5

Source§

type Bus = APB1

Bus type;
Source§

impl Reset for TIM5

Source§

fn reset(rcc: &mut RCC)

Resets peripheral
Source§

unsafe fn reset_unchecked()

Safety Read more
Source§

impl TimerDirection for TIM5

Source§

impl TimerInit<Periph<RegisterBlock, 1073744896>> for TIM5

Source§

fn constrain(self, mcu: &mut Mcu) -> Timer<TIM5>

Source§

impl TimerWithPwm for TIM5

Source§

fn stop_pwm(&mut self)

Source§

fn start_pwm(&mut self)

Source§

fn preload_output_channel_in_mode(&mut self, channel: Channel, mode: PwmMode)

Source§

fn set_polarity(&mut self, channel: Channel, polarity: PwmPolarity)

Source§

impl TimerWithPwm1Ch for TIM5

Source§

fn enable_ch1(&mut self, en: bool)

Source§

fn set_ch1_cc_value(&mut self, value: u32)

Source§

fn get_ch1_cc_value(&self) -> u32

Source§

impl TimerWithPwm2Ch for TIM5

Source§

fn enable_ch2(&mut self, en: bool)

Source§

fn set_ch2_cc_value(&mut self, value: u32)

Source§

fn get_ch2_cc_value(&self) -> u32

Source§

impl TimerWithPwm3Ch for TIM5

Source§

fn enable_ch3(&mut self, en: bool)

Source§

fn set_ch3_cc_value(&mut self, value: u32)

Source§

fn get_ch3_cc_value(&self) -> u32

Source§

impl TimerWithPwm4Ch for TIM5

Source§

fn enable_ch4(&mut self, en: bool)

Source§

fn set_ch4_cc_value(&mut self, value: u32)

Source§

fn get_ch4_cc_value(&self) -> u32

Source§

impl Instance for TIM5