stm32-metapac

Crates

5.0.0

Versions

stm32g0b1vb

Flavors

Struct Isr

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

Interrupt & status register

Tuple Fields§

§0: u32

Implementations§

§

impl Isr

pub const fn pe(&self) -> bool

PE

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

PE

pub const fn fe(&self) -> bool

FE

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

FE

pub const fn ne(&self) -> bool

NE

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

NE

pub const fn ore(&self) -> bool

ORE

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

ORE

pub const fn idle(&self) -> bool

IDLE

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

IDLE

pub const fn rxne(&self) -> bool

RXNE

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

RXNE

pub const fn tc(&self) -> bool

TC

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

TC

pub const fn txe(&self) -> bool

TXE

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

TXE

pub const fn ctsif(&self) -> bool

CTSIF

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

CTSIF

pub const fn cts(&self) -> bool

CTS

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

CTS

pub const fn busy(&self) -> bool

BUSY

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

BUSY

pub const fn cmf(&self) -> bool

CMF

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

CMF

pub const fn sbkf(&self) -> bool

SBKF

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

SBKF

pub const fn rwu(&self) -> bool

RWU

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

RWU

pub const fn wuf(&self) -> bool

WUF

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

WUF

pub const fn teack(&self) -> bool

TEACK

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

TEACK

pub const fn reack(&self) -> bool

REACK

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

REACK

pub const fn txfe(&self) -> bool

TXFIFO Empty

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

TXFIFO Empty

pub const fn rxff(&self) -> bool

RXFIFO Full

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

RXFIFO Full

pub const fn rxft(&self) -> bool

RXFIFO threshold flag

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

RXFIFO threshold flag

pub const fn txft(&self) -> bool

TXFIFO threshold flag

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

TXFIFO threshold flag

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.