stm32-metapac

Crates

git

Versions

stm32u5f7vi

Flavors

Bsrr

Struct Bsrr 

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

LPGPIO port bit set/reset register.

Tuple Fields§

§0: u32

Implementations§

§

impl Bsrr

pub const fn bs0(&self) -> bool

BS0.

pub const fn set_bs0(&mut self, val: bool)

BS0.

pub const fn bs1(&self) -> bool

BS1.

pub const fn set_bs1(&mut self, val: bool)

BS1.

pub const fn bs2(&self) -> bool

BS2.

pub const fn set_bs2(&mut self, val: bool)

BS2.

pub const fn bs3(&self) -> bool

BS3.

pub const fn set_bs3(&mut self, val: bool)

BS3.

pub const fn bs4(&self) -> bool

BS4.

pub const fn set_bs4(&mut self, val: bool)

BS4.

pub const fn bs5(&self) -> bool

BS5.

pub const fn set_bs5(&mut self, val: bool)

BS5.

pub const fn bs6(&self) -> bool

BS6.

pub const fn set_bs6(&mut self, val: bool)

BS6.

pub const fn bs7(&self) -> bool

BS7.

pub const fn set_bs7(&mut self, val: bool)

BS7.

pub const fn bs8(&self) -> bool

BS8.

pub const fn set_bs8(&mut self, val: bool)

BS8.

pub const fn bs9(&self) -> bool

BS9.

pub const fn set_bs9(&mut self, val: bool)

BS9.

pub const fn bs10(&self) -> bool

BS10.

pub const fn set_bs10(&mut self, val: bool)

BS10.

pub const fn bs11(&self) -> bool

BS11.

pub const fn set_bs11(&mut self, val: bool)

BS11.

pub const fn bs12(&self) -> bool

BS12.

pub const fn set_bs12(&mut self, val: bool)

BS12.

pub const fn bs13(&self) -> bool

BS13.

pub const fn set_bs13(&mut self, val: bool)

BS13.

pub const fn bs14(&self) -> bool

BS14.

pub const fn set_bs14(&mut self, val: bool)

BS14.

pub const fn bs15(&self) -> bool

BS15.

pub const fn set_bs15(&mut self, val: bool)

BS15.

pub const fn br0(&self) -> bool

BR0.

pub const fn set_br0(&mut self, val: bool)

BR0.

pub const fn br1(&self) -> bool

BR1.

pub const fn set_br1(&mut self, val: bool)

BR1.

pub const fn br2(&self) -> bool

BR2.

pub const fn set_br2(&mut self, val: bool)

BR2.

pub const fn br3(&self) -> bool

BR3.

pub const fn set_br3(&mut self, val: bool)

BR3.

pub const fn br4(&self) -> bool

BR4.

pub const fn set_br4(&mut self, val: bool)

BR4.

pub const fn br5(&self) -> bool

BR5.

pub const fn set_br5(&mut self, val: bool)

BR5.

pub const fn br6(&self) -> bool

BR6.

pub const fn set_br6(&mut self, val: bool)

BR6.

pub const fn br7(&self) -> bool

BR7.

pub const fn set_br7(&mut self, val: bool)

BR7.

pub const fn br8(&self) -> bool

BR8.

pub const fn set_br8(&mut self, val: bool)

BR8.

pub const fn br9(&self) -> bool

BR9.

pub const fn set_br9(&mut self, val: bool)

BR9.

pub const fn br10(&self) -> bool

BR10.

pub const fn set_br10(&mut self, val: bool)

BR10.

pub const fn br11(&self) -> bool

BR11.

pub const fn set_br11(&mut self, val: bool)

BR11.

pub const fn br12(&self) -> bool

BR12.

pub const fn set_br12(&mut self, val: bool)

BR12.

pub const fn br13(&self) -> bool

BR13.

pub const fn set_br13(&mut self, val: bool)

BR13.

pub const fn br14(&self) -> bool

BR14.

pub const fn set_br14(&mut self, val: bool)

BR14.

pub const fn br15(&self) -> bool

BR15.

pub const fn set_br15(&mut self, val: bool)

BR15.

Trait Implementations§

§

impl Clone for Bsrr

§

fn clone(&self) -> Bsrr

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
§

impl Debug for Bsrr

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for Bsrr

§

fn default() -> Bsrr

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

impl PartialEq for Bsrr

§

fn eq(&self, other: &Bsrr) -> 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 Bsrr

§

impl Eq for Bsrr

§

impl StructuralPartialEq for Bsrr

Auto Trait Implementations§

§

impl Freeze for Bsrr

§

impl RefUnwindSafe for Bsrr

§

impl Send for Bsrr

§

impl Sync for Bsrr

§

impl Unpin for Bsrr

§

impl UnwindSafe for Bsrr

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.