[−][src]Struct stm32f1xx_hal::timer::Timer
Implementations
impl Timer<TIM1>
[src]
pub fn pwm<REMAP, P, PINS, T>(
self,
_pins: PINS,
mapr: &mut MAPR,
freq: T
) -> Pwm<TIM1, REMAP, P, PINS> where
REMAP: Remap<Periph = TIM1>,
PINS: Pins<REMAP, P>,
T: Into<Hertz>,
[src]
self,
_pins: PINS,
mapr: &mut MAPR,
freq: T
) -> Pwm<TIM1, REMAP, P, PINS> where
REMAP: Remap<Periph = TIM1>,
PINS: Pins<REMAP, P>,
T: Into<Hertz>,
impl Timer<TIM2>
[src]
pub fn pwm<REMAP, P, PINS, T>(
self,
_pins: PINS,
mapr: &mut MAPR,
freq: T
) -> Pwm<TIM2, REMAP, P, PINS> where
REMAP: Remap<Periph = TIM2>,
PINS: Pins<REMAP, P>,
T: Into<Hertz>,
[src]
self,
_pins: PINS,
mapr: &mut MAPR,
freq: T
) -> Pwm<TIM2, REMAP, P, PINS> where
REMAP: Remap<Periph = TIM2>,
PINS: Pins<REMAP, P>,
T: Into<Hertz>,
impl Timer<TIM3>
[src]
pub fn pwm<REMAP, P, PINS, T>(
self,
_pins: PINS,
mapr: &mut MAPR,
freq: T
) -> Pwm<TIM3, REMAP, P, PINS> where
REMAP: Remap<Periph = TIM3>,
PINS: Pins<REMAP, P>,
T: Into<Hertz>,
[src]
self,
_pins: PINS,
mapr: &mut MAPR,
freq: T
) -> Pwm<TIM3, REMAP, P, PINS> where
REMAP: Remap<Periph = TIM3>,
PINS: Pins<REMAP, P>,
T: Into<Hertz>,
impl Timer<TIM1>
[src]
pub fn pwm_input<REMAP, PINS, T>(
self,
pins: PINS,
mapr: &mut MAPR,
dbg: &mut DBG,
mode: Configuration<T>
) -> PwmInput<TIM1, REMAP, PINS> where
REMAP: Remap<Periph = TIM1>,
PINS: Pins<REMAP>,
T: Into<Hertz>,
[src]
self,
pins: PINS,
mapr: &mut MAPR,
dbg: &mut DBG,
mode: Configuration<T>
) -> PwmInput<TIM1, REMAP, PINS> where
REMAP: Remap<Periph = TIM1>,
PINS: Pins<REMAP>,
T: Into<Hertz>,
impl Timer<TIM2>
[src]
pub fn pwm_input<REMAP, PINS, T>(
self,
pins: PINS,
mapr: &mut MAPR,
dbg: &mut DBG,
mode: Configuration<T>
) -> PwmInput<TIM2, REMAP, PINS> where
REMAP: Remap<Periph = TIM2>,
PINS: Pins<REMAP>,
T: Into<Hertz>,
[src]
self,
pins: PINS,
mapr: &mut MAPR,
dbg: &mut DBG,
mode: Configuration<T>
) -> PwmInput<TIM2, REMAP, PINS> where
REMAP: Remap<Periph = TIM2>,
PINS: Pins<REMAP>,
T: Into<Hertz>,
impl Timer<TIM3>
[src]
pub fn pwm_input<REMAP, PINS, T>(
self,
pins: PINS,
mapr: &mut MAPR,
dbg: &mut DBG,
mode: Configuration<T>
) -> PwmInput<TIM3, REMAP, PINS> where
REMAP: Remap<Periph = TIM3>,
PINS: Pins<REMAP>,
T: Into<Hertz>,
[src]
self,
pins: PINS,
mapr: &mut MAPR,
dbg: &mut DBG,
mode: Configuration<T>
) -> PwmInput<TIM3, REMAP, PINS> where
REMAP: Remap<Periph = TIM3>,
PINS: Pins<REMAP>,
T: Into<Hertz>,
impl Timer<TIM1>
[src]
pub fn qei<REMAP, PINS>(
self,
pins: PINS,
mapr: &mut MAPR,
options: QeiOptions
) -> Qei<TIM1, REMAP, PINS> where
REMAP: Remap<Periph = TIM1>,
PINS: Pins<REMAP>,
[src]
self,
pins: PINS,
mapr: &mut MAPR,
options: QeiOptions
) -> Qei<TIM1, REMAP, PINS> where
REMAP: Remap<Periph = TIM1>,
PINS: Pins<REMAP>,
impl Timer<TIM2>
[src]
pub fn qei<REMAP, PINS>(
self,
pins: PINS,
mapr: &mut MAPR,
options: QeiOptions
) -> Qei<TIM2, REMAP, PINS> where
REMAP: Remap<Periph = TIM2>,
PINS: Pins<REMAP>,
[src]
self,
pins: PINS,
mapr: &mut MAPR,
options: QeiOptions
) -> Qei<TIM2, REMAP, PINS> where
REMAP: Remap<Periph = TIM2>,
PINS: Pins<REMAP>,
impl Timer<TIM3>
[src]
pub fn qei<REMAP, PINS>(
self,
pins: PINS,
mapr: &mut MAPR,
options: QeiOptions
) -> Qei<TIM3, REMAP, PINS> where
REMAP: Remap<Periph = TIM3>,
PINS: Pins<REMAP>,
[src]
self,
pins: PINS,
mapr: &mut MAPR,
options: QeiOptions
) -> Qei<TIM3, REMAP, PINS> where
REMAP: Remap<Periph = TIM3>,
PINS: Pins<REMAP>,
impl Timer<SYST>
[src]
pub fn syst(syst: SYST, clocks: &Clocks) -> Self
[src]
pub fn start_count_down<T>(self, timeout: T) -> CountDownTimer<SYST> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
pub fn release(self) -> SYST
[src]
impl Timer<TIM2>
[src]
pub fn tim2(tim: TIM2, clocks: &Clocks, apb: &mut APB1) -> Self
[src]
Initialize timer
pub fn start_count_down<T>(self, timeout: T) -> CountDownTimer<TIM2> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
Starts timer in count down mode at a given frequency
pub fn start_master<T>(self, timeout: T, mode: MMS_A) -> CountDownTimer<TIM2> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
Starts timer in count down mode at a given frequency and additionally configures the timers master mode
pub fn clocking_reset(&mut self, apb: &mut <TIM2 as RccBus>::Bus)
[src]
Resets timer peripheral
pub fn stop_in_debug(&mut self, dbg: &mut DBG, state: bool)
[src]
Stopping timer in debug mode can cause troubles when sampling the signal
pub fn release(self) -> TIM2
[src]
Releases the TIM Peripheral
impl Timer<TIM3>
[src]
pub fn tim3(tim: TIM3, clocks: &Clocks, apb: &mut APB1) -> Self
[src]
Initialize timer
pub fn start_count_down<T>(self, timeout: T) -> CountDownTimer<TIM3> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
Starts timer in count down mode at a given frequency
pub fn start_master<T>(self, timeout: T, mode: MMS_A) -> CountDownTimer<TIM3> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
Starts timer in count down mode at a given frequency and additionally configures the timers master mode
pub fn clocking_reset(&mut self, apb: &mut <TIM3 as RccBus>::Bus)
[src]
Resets timer peripheral
pub fn stop_in_debug(&mut self, dbg: &mut DBG, state: bool)
[src]
Stopping timer in debug mode can cause troubles when sampling the signal
pub fn release(self) -> TIM3
[src]
Releases the TIM Peripheral
impl Timer<TIM1>
[src]
pub fn tim1(tim: TIM1, clocks: &Clocks, apb: &mut APB2) -> Self
[src]
Initialize timer
pub fn start_count_down<T>(self, timeout: T) -> CountDownTimer<TIM1> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
Starts timer in count down mode at a given frequency
pub fn start_master<T>(self, timeout: T, mode: MMS_A) -> CountDownTimer<TIM1> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
Starts timer in count down mode at a given frequency and additionally configures the timers master mode
pub fn clocking_reset(&mut self, apb: &mut <TIM1 as RccBus>::Bus)
[src]
Resets timer peripheral
pub fn stop_in_debug(&mut self, dbg: &mut DBG, state: bool)
[src]
Stopping timer in debug mode can cause troubles when sampling the signal
pub fn release(self) -> TIM1
[src]
Releases the TIM Peripheral
Auto Trait Implementations
impl<TIM> Send for Timer<TIM> where
TIM: Send,
TIM: Send,
impl<TIM> Sync for Timer<TIM> where
TIM: Sync,
TIM: Sync,
impl<TIM> Unpin for Timer<TIM> where
TIM: Unpin,
TIM: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,