stm32-metapac

Crates

git

Versions

stm32f303vc

Flavors

Struct stm32_metapac::can::regs::Tsr

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

transmit status register

Tuple Fields§

§0: u32

Implementations§

§

impl Tsr

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

RQCP0

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

RQCP0

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

TXOK0

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

TXOK0

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

ALST0

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

ALST0

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

TERR0

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

TERR0

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

ABRQ0

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

ABRQ0

pub const fn code(&self) -> u8

CODE

pub fn set_code(&mut self, val: u8)

CODE

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

Lowest priority flag for mailbox 0

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

Lowest priority flag for mailbox 0

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

Lowest priority flag for mailbox 0

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

Lowest priority flag for mailbox 0

Trait Implementations§

§

impl Clone for Tsr

§

fn clone(&self) -> Tsr

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 Tsr

§

fn default() -> Tsr

Returns the “default value” for a type. Read more
§

impl PartialEq for Tsr

§

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

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

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 Tsr

§

impl Eq for Tsr

§

impl StructuralPartialEq for Tsr

Auto Trait Implementations§

§

impl Freeze for Tsr

§

impl RefUnwindSafe for Tsr

§

impl Send for Tsr

§

impl Sync for Tsr

§

impl Unpin for Tsr

§

impl UnwindSafe for Tsr

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.