Struct W

Source
pub struct W<REG: RegisterSpec + ?Sized> { /* private fields */ }
Expand description

Register writer.

Used as an argument to the closures in the write and modify methods of the register.

Implementations§

Source§

impl<REG: RegisterSpec> W<REG>

Source

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

Writes raw bits to the register.

Trait Implementations§

Source§

impl From<W<DLH_SPEC>> for W

Source§

fn from(writer: W<DLH_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<W<DLL_SPEC>> for W

Source§

fn from(writer: W<DLL_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<W<DMA_REQ_EN_SPEC>> for W

Source§

fn from(writer: W<DMA_REQ_EN_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<W<FCC_SPEC>> for W

Source§

fn from(writer: W<FCC_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<W<FCR_SPEC>> for W

Source§

fn from(writer: W<FCR_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<W<HALT_SPEC>> for W

Source§

fn from(writer: W<HALT_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<W<HSK_SPEC>> for W

Source§

fn from(writer: W<HSK_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<W<IER_SPEC>> for W

Source§

fn from(writer: W<IER_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<W<LCR_SPEC>> for W

Source§

fn from(writer: W<LCR_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<W<MCR_SPEC>> for W

Source§

fn from(writer: W<MCR_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<W<SCH_SPEC>> for W

Source§

fn from(writer: W<SCH_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<W<THR_SPEC>> for W

Source§

fn from(writer: W<THR_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<REG> Freeze for W<REG>
where <REG as RegisterSpec>::Ux: Freeze, REG: ?Sized,

§

impl<REG> RefUnwindSafe for W<REG>
where <REG as RegisterSpec>::Ux: RefUnwindSafe, REG: RefUnwindSafe + ?Sized,

§

impl<REG> Send for W<REG>
where <REG as RegisterSpec>::Ux: Send, REG: Send + ?Sized,

§

impl<REG> Sync for W<REG>
where <REG as RegisterSpec>::Ux: Sync, REG: Sync + ?Sized,

§

impl<REG> Unpin for W<REG>
where <REG as RegisterSpec>::Ux: Unpin, REG: Unpin + ?Sized,

§

impl<REG> UnwindSafe for W<REG>
where <REG as RegisterSpec>::Ux: UnwindSafe, REG: UnwindSafe + ?Sized,

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, 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.