TIM_TypeDef

Struct TIM_TypeDef 

Source
#[repr(C)]
pub struct TIM_TypeDef {
Show 26 fields pub CR1: u32, pub CR2: u32, pub SMCR: u32, pub DIER: u32, pub SR: u32, pub EGR: u32, pub CCMR1: u32, pub CCMR2: u32, pub CCER: u32, pub CNT: u32, pub PSC: u32, pub ARR: u32, pub RCR: u32, pub CCR1: u32, pub CCR2: u32, pub CCR3: u32, pub CCR4: u32, pub BDTR: u32, pub DCR: u32, pub DMAR: u32, pub OR: u32, pub CCMR3: u32, pub CCR5: u32, pub CCR6: u32, pub AF1: u32, pub AF2: u32,
}
Expand description

TIM

Fields§

§CR1: u32

< TIM control register 1, Address offset: 0x00

§CR2: u32

< TIM control register 2, Address offset: 0x04

§SMCR: u32

< TIM slave mode control register, Address offset: 0x08

§DIER: u32

< TIM DMA/interrupt enable register, Address offset: 0x0C

§SR: u32

< TIM status register, Address offset: 0x10

§EGR: u32

< TIM event generation register, Address offset: 0x14

§CCMR1: u32

< TIM capture/compare mode register 1, Address offset: 0x18

§CCMR2: u32

< TIM capture/compare mode register 2, Address offset: 0x1C

§CCER: u32

< TIM capture/compare enable register, Address offset: 0x20

§CNT: u32

< TIM counter register, Address offset: 0x24

§PSC: u32

< TIM prescaler register, Address offset: 0x28

§ARR: u32

< TIM auto-reload register, Address offset: 0x2C

§RCR: u32

< TIM repetition counter register, Address offset: 0x30

§CCR1: u32

< TIM capture/compare register 1, Address offset: 0x34

§CCR2: u32

< TIM capture/compare register 2, Address offset: 0x38

§CCR3: u32

< TIM capture/compare register 3, Address offset: 0x3C

§CCR4: u32

< TIM capture/compare register 4, Address offset: 0x40

§BDTR: u32

< TIM break and dead-time register, Address offset: 0x44

§DCR: u32

< TIM DMA control register, Address offset: 0x48

§DMAR: u32

< TIM DMA address for full transfer, Address offset: 0x4C

§OR: u32

< TIM option register Address offset: 0x50

§CCMR3: u32

< TIM capture/compare mode register 3, Address offset: 0x54

§CCR5: u32

< TIM capture/compare register5, Address offset: 0x58

§CCR6: u32

< TIM capture/compare register6, Address offset: 0x5C

§AF1: u32

< TIM Alternate function option register 1, Address offset: 0x60

§AF2: u32

< TIM Alternate function option register 2, Address offset: 0x64

Trait Implementations§

Source§

impl Clone for TIM_TypeDef

Source§

fn clone(&self) -> TIM_TypeDef

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for TIM_TypeDef

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Copy for TIM_TypeDef

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.