W

Struct W 

Source
pub struct W { /* private fields */ }
Expand description

Value to write to the register

Implementations§

Source§

impl W

Source

pub fn reset_value() -> W

Reset value of the register

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register

Source

pub fn mpl5(&mut self) -> _MPL5W<'_>

Bit 8 - Master 5 Privilege Level

Source

pub fn mtw5(&mut self) -> _MTW5W<'_>

Bit 9 - Master 5 Trusted For Writes

Source

pub fn mtr5(&mut self) -> _MTR5W<'_>

Bit 10 - Master 5 Trusted For Read

Source

pub fn mpl4(&mut self) -> _MPL4W<'_>

Bit 12 - Master 4 Privilege Level

Source

pub fn mtw4(&mut self) -> _MTW4W<'_>

Bit 13 - Master 4 Trusted For Writes

Source

pub fn mtr4(&mut self) -> _MTR4W<'_>

Bit 14 - Master 4 Trusted For Read

Source

pub fn mpl3(&mut self) -> _MPL3W<'_>

Bit 16 - Master 3 Privilege Level

Source

pub fn mtw3(&mut self) -> _MTW3W<'_>

Bit 17 - Master 3 Trusted For Writes

Source

pub fn mtr3(&mut self) -> _MTR3W<'_>

Bit 18 - Master 3 Trusted For Read

Source

pub fn mpl2(&mut self) -> _MPL2W<'_>

Bit 20 - Master 2 Privilege Level

Source

pub fn mtw2(&mut self) -> _MTW2W<'_>

Bit 21 - Master 2 Trusted For Writes

Source

pub fn mtr2(&mut self) -> _MTR2W<'_>

Bit 22 - Master 2 Trusted For Read

Source

pub fn mpl1(&mut self) -> _MPL1W<'_>

Bit 24 - Master 1 Privilege Level

Source

pub fn mtw1(&mut self) -> _MTW1W<'_>

Bit 25 - Master 1 Trusted for Writes

Source

pub fn mtr1(&mut self) -> _MTR1W<'_>

Bit 26 - Master 1 Trusted for Read

Source

pub fn mpl0(&mut self) -> _MPL0W<'_>

Bit 28 - Master 0 Privilege Level

Source

pub fn mtw0(&mut self) -> _MTW0W<'_>

Bit 29 - Master 0 Trusted For Writes

Source

pub fn mtr0(&mut self) -> _MTR0W<'_>

Bit 30 - Master 0 Trusted For Read

Auto Trait Implementations§

§

impl Freeze for W

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

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> 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> Same for T

Source§

type Output = T

Should always be Self
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.