stm32-metapac

Crates

15.0.0

Versions

stm32g031f6

Flavors

Struct Isr

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

Interrupt and Status Register

Tuple Fields§

§0: u32

Implementations§

§

impl Isr

pub const fn cmpm(&self) -> bool

Compare match

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

Compare match

pub const fn arrm(&self) -> bool

Autoreload match

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

Autoreload match

pub const fn exttrig(&self) -> bool

External trigger edge event

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

External trigger edge event

pub const fn cmpok(&self) -> bool

Compare register update OK

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

Compare register update OK

pub const fn arrok(&self) -> bool

Autoreload register update OK

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

Autoreload register update OK

pub const fn up(&self) -> bool

Counter direction change down to up

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

Counter direction change down to up

pub const fn down(&self) -> bool

Counter direction change up to down

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

Counter direction change up to down

Trait Implementations§

§

impl Clone for Isr

§

fn clone(&self) -> Isr

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
§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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 StructuralPartialEq for Isr

Auto Trait Implementations§

§

impl Freeze for Isr

§

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