stm32-metapac

Crates

git

Versions

stm32wba55ce

Flavors

TzscSeccfgr2

Struct TzscSeccfgr2 

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

GTZC1 TZSC secure configuration register 2.

Tuple Fields§

§0: u32

Implementations§

§

impl TzscSeccfgr2

pub const fn tim1sec(&self) -> bool

Secure access mode for TIM1.

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

Secure access mode for TIM1.

pub const fn spi1sec(&self) -> bool

Secure access mode for SPI1.

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

Secure access mode for SPI1.

pub const fn usart1sec(&self) -> bool

Secure access mode for USART1.

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

Secure access mode for USART1.

pub const fn tim16sec(&self) -> bool

Secure access mode for TIM16.

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

Secure access mode for TIM16.

pub const fn tim17sec(&self) -> bool

Secure access mode for TIM17.

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

Secure access mode for TIM17.

pub const fn sai1sec(&self) -> bool

Secure access mode for SAI1.

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

Secure access mode for SAI1.

pub const fn spi3sec(&self) -> bool

Secure access mode for SPI3.

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

Secure access mode for SPI3.

pub const fn lpuart1sec(&self) -> bool

Secure access mode for LPUART1.

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

Secure access mode for LPUART1.

pub const fn i2c3sec(&self) -> bool

Secure access mode for I2C3.

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

Secure access mode for I2C3.

pub const fn lptim1sec(&self) -> bool

Secure access mode for LPTIM1.

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

Secure access mode for LPTIM1.

pub const fn compsec(&self) -> bool

Secure access mode for COMP.

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

Secure access mode for COMP.

pub const fn adc4sec(&self) -> bool

Secure access mode for ADC4.

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

Secure access mode for ADC4.

pub const fn vrefbufsec(&self) -> bool

Secure access mode for VREFBUF.

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

Secure access mode for VREFBUF.

Trait Implementations§

§

impl Clone for TzscSeccfgr2

§

fn clone(&self) -> TzscSeccfgr2

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 TzscSeccfgr2

§

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

Formats the value using the given formatter. Read more
§

impl Default for TzscSeccfgr2

§

fn default() -> TzscSeccfgr2

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

impl PartialEq for TzscSeccfgr2

§

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

§

impl Eq for TzscSeccfgr2

§

impl StructuralPartialEq for TzscSeccfgr2

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.