[][src]Struct stm32f3::stm32f303::tim3::smcr::_SMSW

pub struct _SMSW<'a> { /* fields omitted */ }

Proxy

Methods

impl<'a> _SMSW<'a>[src]

pub fn variant(self, variant: SMSW) -> &'a mut W[src]

Writes variant to the field

pub fn disabled(self) -> &'a mut W[src]

Slave mode disabled - if CEN = ‘1 then the prescaler is clocked directly by the internal clock.

pub fn encoder_mode_1(self) -> &'a mut W[src]

Encoder mode 1 - Counter counts up/down on TI2FP1 edge depending on TI1FP2 level.

pub fn encoder_mode_2(self) -> &'a mut W[src]

Encoder mode 2 - Counter counts up/down on TI1FP2 edge depending on TI2FP1 level.

pub fn encoder_mode_3(self) -> &'a mut W[src]

Encoder mode 3 - Counter counts up/down on both TI1FP1 and TI2FP2 edges depending on the level of the other input.

pub fn reset_mode(self) -> &'a mut W[src]

Reset Mode - Rising edge of the selected trigger input (TRGI) reinitializes the counter and generates an update of the registers.

pub fn gated_mode(self) -> &'a mut W[src]

Gated Mode - The counter clock is enabled when the trigger input (TRGI) is high. The counter stops (but is not reset) as soon as the trigger becomes low. Both start and stop of the counter are controlled.

pub fn trigger_mode(self) -> &'a mut W[src]

Trigger Mode - The counter starts at a rising edge of the trigger TRGI (but it is not reset). Only the start of the counter is controlled.

pub fn ext_clock_mode(self) -> &'a mut W[src]

External Clock Mode 1 - Rising edges of the selected trigger (TRGI) clock the counter.

pub fn bits(self, value: u8) -> &'a mut W[src]

Writes raw bits to the field

Auto Trait Implementations

impl<'a> Unpin for _SMSW<'a>

impl<'a> Sync for _SMSW<'a>

impl<'a> Send for _SMSW<'a>

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self