embassy-stm32

Crates

git

Versions

stm32f303vc

Flavors

Struct TIM1

Source
pub struct TIM1 { /* private fields */ }
Expand description

TIM1 peripheral

Implementationsยง

Sourceยง

impl TIM1

Source

pub unsafe fn steal() -> Peri<'static, Self>

Unsafely create an instance of this peripheral out of thin air.

ยงSafety

You must ensure that youโ€™re only using one instance of this type at a time.

Trait Implementationsยง

Sourceยง

impl AdvancedInstance1Channel for TIM1

Sourceยง

type CommunicationInterrupt = TIM1_TRG_COM_TIM17

Communication interrupt for this timer.
Sourceยง

type BreakInputInterrupt = TIM1_BRK_TIM15

Break input interrupt for this timer.
Sourceยง

impl BreakInputPin<TIM1, BkIn1> for PA14

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as BreakInputPin
Sourceยง

impl BreakInputPin<TIM1, BkIn1> for PA15

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as BreakInputPin
Sourceยง

impl BreakInputPin<TIM1, BkIn1> for PA6

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as BreakInputPin
Sourceยง

impl BreakInputPin<TIM1, BkIn1> for PB12

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as BreakInputPin
Sourceยง

impl BreakInputPin<TIM1, BkIn1> for PB8

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as BreakInputPin
Sourceยง

impl BreakInputPin<TIM1, BkIn1> for PE15

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as BreakInputPin
Sourceยง

impl BreakInputPin<TIM1, BkIn2> for PA11

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as BreakInputPin
Sourceยง

impl BreakInputPin<TIM1, BkIn2> for PC3

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as BreakInputPin
Sourceยง

impl BreakInputPin<TIM1, BkIn2> for PE14

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as BreakInputPin
Sourceยง

impl Clone for TIM1

Sourceยง

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยง

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl CoreInstance for TIM1

Sourceยง

const BITS: TimerBits = TimerBits::Bits16

Amount of bits this timer has.
Sourceยง

type UpdateInterrupt = TIM1_UP_TIM16

Update Interrupt for this timer.
Sourceยง

fn regs() -> *mut ()

Registers for this timer. Read more
Sourceยง

impl Debug for TIM1

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl Dma<TIM1, Ch1> for DMA1_CH2

Sourceยง

fn request(&self) -> Request

Get the DMA request number needed to use this channel asDma Note: in some chips, ST calls this the โ€œchannelโ€, and calls channels โ€œstreamsโ€. embassy-stm32 always uses the โ€œchannelโ€ and โ€œrequest numberโ€ names.
Sourceยง

fn remap(&self)

Remap the DMA channel
Sourceยง

impl Dma<TIM1, Ch2> for DMA1_CH3

Sourceยง

fn request(&self) -> Request

Get the DMA request number needed to use this channel asDma Note: in some chips, ST calls this the โ€œchannelโ€, and calls channels โ€œstreamsโ€. embassy-stm32 always uses the โ€œchannelโ€ and โ€œrequest numberโ€ names.
Sourceยง

fn remap(&self)

Remap the DMA channel
Sourceยง

impl Dma<TIM1, Ch3> for DMA1_CH6

Sourceยง

fn request(&self) -> Request

Get the DMA request number needed to use this channel asDma Note: in some chips, ST calls this the โ€œchannelโ€, and calls channels โ€œstreamsโ€. embassy-stm32 always uses the โ€œchannelโ€ and โ€œrequest numberโ€ names.
Sourceยง

fn remap(&self)

Remap the DMA channel
Sourceยง

impl Dma<TIM1, Ch4> for DMA1_CH4

Sourceยง

fn request(&self) -> Request

Get the DMA request number needed to use this channel asDma Note: in some chips, ST calls this the โ€œchannelโ€, and calls channels โ€œstreamsโ€. embassy-stm32 always uses the โ€œchannelโ€ and โ€œrequest numberโ€ names.
Sourceยง

fn remap(&self)

Remap the DMA channel
Sourceยง

impl ExternalTriggerPin<TIM1> for PA12

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as ExternalTriggerPin
Sourceยง

impl ExternalTriggerPin<TIM1> for PE7

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as ExternalTriggerPin
Sourceยง

impl Format for TIM1
where (): Format,

Sourceยง

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Sourceยง

impl GeneralInstance1Channel for TIM1

Sourceยง

type CaptureCompareInterrupt = TIM1_CC

Capture compare interrupt for this timer.
Sourceยง

impl GeneralInstance2Channel for TIM1

Sourceยง

type TriggerInterrupt = TIM1_TRG_COM_TIM17

Trigger event interrupt for this timer.
Sourceยง

impl TimerComplementaryPin<TIM1, Ch1> for PA11

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch1> for PA7

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch1> for PB13

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch1> for PC13

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch1> for PE8

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch2> for PA12

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch2> for PB0

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch2> for PB14

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch2> for PE10

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch3> for PB1

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch3> for PB15

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch3> for PE12

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerComplementaryPin<TIM1, Ch3> for PF0

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerComplementaryPin
Sourceยง

impl TimerPin<TIM1, Ch1> for PA8

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerPin
Sourceยง

impl TimerPin<TIM1, Ch1> for PE9

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerPin
Sourceยง

impl TimerPin<TIM1, Ch2> for PA9

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerPin
Sourceยง

impl TimerPin<TIM1, Ch2> for PE11

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerPin
Sourceยง

impl TimerPin<TIM1, Ch3> for PA10

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerPin
Sourceยง

impl TimerPin<TIM1, Ch3> for PE13

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerPin
Sourceยง

impl TimerPin<TIM1, Ch4> for PA11

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerPin
Sourceยง

impl TimerPin<TIM1, Ch4> for PE14

Sourceยง

fn af_num(&self) -> u8

Get the AF number needed to use this pin as TimerPin
Sourceยง

impl UpDma<TIM1> for DMA1_CH5

Sourceยง

fn request(&self) -> Request

Get the DMA request number needed to use this channel asUpDma Note: in some chips, ST calls this the โ€œchannelโ€, and calls channels โ€œstreamsโ€. embassy-stm32 always uses the โ€œchannelโ€ and โ€œrequest numberโ€ names.
Sourceยง

fn remap(&self)

Remap the DMA channel
Sourceยง

impl AdvancedInstance2Channel for TIM1

Sourceยง

impl AdvancedInstance4Channel for TIM1

Sourceยง

impl BasicInstance for TIM1

Sourceยง

impl BasicNoCr2Instance for TIM1

Sourceยง

impl Copy for TIM1

Sourceยง

impl GeneralInstance4Channel for TIM1

Sourceยง

impl PeripheralType for TIM1

Sourceยง

impl RccPeripheral for TIM1

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

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

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.