pub struct TIM6 { /* private fields */ }
Expand description

TIM6 peripheral

Implementations§

source§

impl TIM6

source

pub unsafe fn steal() -> 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 Basic16bitInstance for TIM6

§

type Interrupt = TIM6_DAC

Interrupt for this timer.
source§

fn regs() -> TimBasic

Get access to the basic 16bit timer registers. Read more
source§

fn start(&mut self)

Start the timer.
source§

fn stop(&mut self)

Stop the timer.
source§

fn reset(&mut self)

Reset the counter value to 0
source§

fn set_frequency(&mut self, frequency: Hertz)

Set the frequency of how many times per second the timer counts up to the max value or down to 0. Read more
source§

fn clear_update_interrupt(&mut self) -> bool

Clear update interrupt. Read more
source§

fn enable_update_interrupt(&mut self, enable: bool)

Enable/disable the update interrupt.
source§

fn enable_update_dma(&mut self, enable: bool)

Enable/disable the update dma.
source§

fn get_update_dma_state(&self) -> bool

Get the update dma enable/disable state.
source§

fn set_autoreload_preload(&mut self, enable: bool)

Enable/disable autoreload preload.
source§

fn get_frequency(&self) -> Hertz

Get the timer frequency.
source§

impl Peripheral for TIM6

§

type P = TIM6

Peripheral singleton type
source§

unsafe fn clone_unchecked(&self) -> Self::P

Unsafely clone (duplicate) a peripheral singleton. Read more
source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>
where Self: 'a,

Convert a value into a PeripheralRef. Read more
source§

impl RccPeripheral for TIM6

source§

impl Basic16bitInstance for TIM6

source§

impl RccPeripheral for TIM6

Auto Trait Implementations§

§

impl RefUnwindSafe for TIM6

§

impl Send for TIM6

§

impl Sync for TIM6

§

impl Unpin for TIM6

§

impl UnwindSafe for TIM6

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> 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>,

§

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>,

§

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.
source§

impl<T> UpDma<TIM6> for T
where T: Channel<Mux = DMAMUX1> + MuxChannel,

source§

fn request(&self) -> u8

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.