pub struct W(_);
Expand description
Register FGCOLR
writer
Implementations
sourceimpl W
impl W
sourcepub fn blue(
&mut self
) -> FieldWriterRaw<'_, u32, FGCOLR_SPEC, u8, u8, Safe, 8, 0>
pub fn blue(
&mut self
) -> FieldWriterRaw<'_, u32, FGCOLR_SPEC, u8, u8, Safe, 8, 0>
Bits 0:7 - Blue Value These bits defines the blue value for the A4 or A8 mode of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, They are read-only.
sourcepub fn green(
&mut self
) -> FieldWriterRaw<'_, u32, FGCOLR_SPEC, u8, u8, Safe, 8, 8>
pub fn green(
&mut self
) -> FieldWriterRaw<'_, u32, FGCOLR_SPEC, u8, u8, Safe, 8, 8>
Bits 8:15 - Green Value These bits defines the green value for the A4 or A8 mode of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, They are read-only.
sourcepub fn red(
&mut self
) -> FieldWriterRaw<'_, u32, FGCOLR_SPEC, u8, u8, Safe, 8, 16>
pub fn red(
&mut self
) -> FieldWriterRaw<'_, u32, FGCOLR_SPEC, u8, u8, Safe, 8, 16>
Bits 16:23 - Red Value These bits defines the red value for the A4 or A8 mode of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, they are read-only.
Methods from Deref<Target = W<FGCOLR_SPEC>>
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations
sourceimpl From<W<FGCOLR_SPEC>> for W
impl From<W<FGCOLR_SPEC>> for W
sourcefn from(writer: W<FGCOLR_SPEC>) -> W
fn from(writer: W<FGCOLR_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more