stm32-metapac

Crates

git

Versions

stm32h7s7l8

Flavors

šŸ“£ We want to hear from you! Fill the Rust Embedded 2024 micro-survey.

Struct stm32_metapac::lptim::regs::Isr

#[repr(transparent)]
pub struct Isr(pub u32);
Expand description

LPTIM interrupt and status register.

Tuple FieldsĀ§

Ā§0: u32

ImplementationsĀ§

Ā§

impl Isr

pub const fn ccif(&self, n: usize) -> bool

Compare 1 interrupt flag The CC1IF flag is set by hardware to inform application that LPTIM_CNT register value matches the compare registerā€™s value. The CC1IF flag can be cleared by writing 1 to the CC1CF bit in the LPTIM_ICR register.

pub fn set_ccif(&mut self, n: usize, val: bool)

Compare 1 interrupt flag The CC1IF flag is set by hardware to inform application that LPTIM_CNT register value matches the compare registerā€™s value. The CC1IF flag can be cleared by writing 1 to the CC1CF bit in the LPTIM_ICR register.

pub const fn arrm(&self) -> bool

Autoreload match ARRM is set by hardware to inform application that LPTIM_CNT registerā€™s value reached the LPTIM_ARR registerā€™s value. ARRM flag can be cleared by writing 1 to the ARRMCF bit in the LPTIM_ICR register.

pub fn set_arrm(&mut self, val: bool)

Autoreload match ARRM is set by hardware to inform application that LPTIM_CNT registerā€™s value reached the LPTIM_ARR registerā€™s value. ARRM flag can be cleared by writing 1 to the ARRMCF bit in the LPTIM_ICR register.

pub const fn exttrig(&self) -> bool

External trigger edge event EXTTRIG is set by hardware to inform application that a valid edge on the selected external trigger input has occurred. If the trigger is ignored because the timer has already started, then this flag is not set. EXTTRIG flag can be cleared by writing 1 to the EXTTRIGCF bit in the LPTIM_ICR register.

pub fn set_exttrig(&mut self, val: bool)

External trigger edge event EXTTRIG is set by hardware to inform application that a valid edge on the selected external trigger input has occurred. If the trigger is ignored because the timer has already started, then this flag is not set. EXTTRIG flag can be cleared by writing 1 to the EXTTRIGCF bit in the LPTIM_ICR register.

pub const fn cmpok(&self, n: usize) -> bool

Compare register 1 update OK CMP1OK is set by hardware to inform application that the APB bus write operation to the LPTIM_CCR1 register has been successfully completed. CMP1OK flag can be cleared by writing 1 to the CMP1OKCF bit in the LPTIM_ICR register.

pub fn set_cmpok(&mut self, n: usize, val: bool)

Compare register 1 update OK CMP1OK is set by hardware to inform application that the APB bus write operation to the LPTIM_CCR1 register has been successfully completed. CMP1OK flag can be cleared by writing 1 to the CMP1OKCF bit in the LPTIM_ICR register.

pub const fn arrok(&self) -> bool

Autoreload register update OK ARROK is set by hardware to inform application that the APB bus write operation to the LPTIM_ARR register has been successfully completed. ARROK flag can be cleared by writing 1 to the ARROKCF bit in the LPTIM_ICR register.

pub fn set_arrok(&mut self, val: bool)

Autoreload register update OK ARROK is set by hardware to inform application that the APB bus write operation to the LPTIM_ARR register has been successfully completed. ARROK flag can be cleared by writing 1 to the ARROKCF bit in the LPTIM_ICR register.

pub const fn up(&self) -> bool

Counter direction change down to up In Encoder mode, UP bit is set by hardware to inform application that the counter direction has changed from down to up. UP flag can be cleared by writing 1 to the UPCF bit in the LPTIM_ICR register. Note: If the LPTIM does not support encoder mode feature, this bit is reserved. Please refer to.

pub fn set_up(&mut self, val: bool)

Counter direction change down to up In Encoder mode, UP bit is set by hardware to inform application that the counter direction has changed from down to up. UP flag can be cleared by writing 1 to the UPCF bit in the LPTIM_ICR register. Note: If the LPTIM does not support encoder mode feature, this bit is reserved. Please refer to.

pub const fn down(&self) -> bool

Counter direction change up to down In Encoder mode, DOWN bit is set by hardware to inform application that the counter direction has changed from up to down. DOWN flag can be cleared by writing 1 to the DOWNCF bit in the LPTIM_ICR register. Note: If the LPTIM does not support encoder mode feature, this bit is reserved. Please refer to.

pub fn set_down(&mut self, val: bool)

Counter direction change up to down In Encoder mode, DOWN bit is set by hardware to inform application that the counter direction has changed from up to down. DOWN flag can be cleared by writing 1 to the DOWNCF bit in the LPTIM_ICR register. Note: If the LPTIM does not support encoder mode feature, this bit is reserved. Please refer to.

Trait ImplementationsĀ§

Ā§

impl Clone for Isr

Ā§

fn clone(&self) -> Isr

Returns a copy of the value. Read more
1.0.0 Ā· sourceĀ§

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

Performs copy-assignment from source. Read more
Ā§

impl Default for Isr

Ā§

fn default() -> Isr

Returns the ā€œdefault valueā€ for a type. Read more
Ā§

impl PartialEq for Isr

Ā§

fn eq(&self, other: &Isr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 Ā· sourceĀ§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Ā§

impl Copy for Isr

Ā§

impl Eq for Isr

Ā§

impl StructuralEq for Isr

Ā§

impl StructuralPartialEq for Isr

Auto Trait ImplementationsĀ§

Ā§

impl RefUnwindSafe for Isr

Ā§

impl Send for Isr

Ā§

impl Sync for Isr

Ā§

impl Unpin for Isr

Ā§

impl UnwindSafe for Isr

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.