stm32-metapac

Crates

git

Versions

stm32u375re

Flavors

Apb1stpenr1

Struct Apb1stpenr1 

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

RCC APB1 peripheral clock enable in Stop mode register 1.

Tuple Fields§

§0: u32

Implementations§

§

impl Apb1stpenr1

pub const fn spi3stpen(&self) -> bool

SPI3 clock enable during Stop mode.

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

SPI3 clock enable during Stop mode.

pub const fn spi2stpen(&self) -> bool

SPI2 clock enable during Stop mode.

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

SPI2 clock enable during Stop mode.

pub const fn usart3stpen(&self) -> bool

USART3 clock enable during Stop mode.

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

USART3 clock enable during Stop mode.

pub const fn uart4stpen(&self) -> bool

UART4 clock enable during Stop mode.

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

UART4 clock enable during Stop mode.

pub const fn uart5stpen(&self) -> bool

UART5 clock enable during Stop mode.

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

UART5 clock enable during Stop mode.

pub const fn i2c1stpen(&self) -> bool

I2C1 clock enable during Stop mode.

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

I2C1 clock enable during Stop mode.

pub const fn i2c2stpen(&self) -> bool

I2C2 clock enable during Stop mode.

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

I2C2 clock enable during Stop mode.

pub const fn i3c1stpen(&self) -> bool

I3C1 clock enable during Stop mode.

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

I3C1 clock enable during Stop mode.

pub const fn opampstpen(&self) -> bool

OPAMP clock enable during Stop mode.

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

OPAMP clock enable during Stop mode.

pub const fn vrefstpen(&self) -> bool

VREFBUF clock enable during Stop mode.

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

VREFBUF clock enable during Stop mode.

pub const fn rtcapbstpen(&self) -> bool

RTC and TAMP APB clock enable during Stop mode.

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

RTC and TAMP APB clock enable during Stop mode.

Trait Implementations§

§

impl Clone for Apb1stpenr1

§

fn clone(&self) -> Apb1stpenr1

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 Apb1stpenr1

§

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

Formats the value using the given formatter. Read more
§

impl Default for Apb1stpenr1

§

fn default() -> Apb1stpenr1

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

impl PartialEq for Apb1stpenr1

§

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

§

impl Eq for Apb1stpenr1

§

impl StructuralPartialEq for Apb1stpenr1

Auto Trait Implementations§

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.