Struct W

Source
pub struct W(/* private fields */);
Expand description

Register FPSCR writer

Implementations§

Source§

impl W

Source

pub fn ioc(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 0>

Bit 0 - Invalid operation cumulative exception bit

Source

pub fn dzc(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 1>

Bit 1 - Division by zero cumulative exception bit.

Source

pub fn ofc(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 2>

Bit 2 - Overflow cumulative exception bit

Source

pub fn ufc(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 3>

Bit 3 - Underflow cumulative exception bit

Source

pub fn ixc(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 4>

Bit 4 - Inexact cumulative exception bit

Source

pub fn idc(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 7>

Bit 7 - Input denormal cumulative exception bit.

Source

pub fn rmode( &mut self, ) -> FieldWriterRaw<'_, u32, FPSCR_SPEC, u8, u8, Unsafe, 2, 22>

Bits 22:23 - Rounding Mode control field

Source

pub fn fz(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 24>

Bit 24 - Flush-to-zero mode control bit:

Source

pub fn dn(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 25>

Bit 25 - Default NaN mode control bit

Source

pub fn ahp(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 26>

Bit 26 - Alternative half-precision control bit

Source

pub fn v(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 28>

Bit 28 - Overflow condition code flag

Source

pub fn c(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 29>

Bit 29 - Carry condition code flag

Source

pub fn z(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 30>

Bit 30 - Zero condition code flag

Source

pub fn n(&mut self) -> BitWriterRaw<'_, u32, FPSCR_SPEC, bool, BitM, 31>

Bit 31 - Negative condition code flag

Source

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

Writes raw bits to the register.

Methods from Deref<Target = W<FPSCR_SPEC>>§

Source

pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>

Writes raw bits to the register.

Trait Implementations§

Source§

impl Deref for W

Source§

type Target = W<FPSCR_SPEC>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<W as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for W

Source§

fn deref_mut(&mut self) -> &mut <W as Deref>::Target

Mutably dereferences the value.
Source§

impl From<W<FPSCR_SPEC>> for W

Source§

fn from(writer: W<FPSCR_SPEC>) -> W

Converts to this type from the input type.

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.