Struct stm32_metapac::dma2d::regs::Ocolr
#[repr(transparent)]pub struct Ocolr(pub u32);
Expand description
DMA2D output color register
Tuple Fields§
§0: u32
Implementations§
§impl Ocolr
impl Ocolr
pub const fn blue(&self) -> u8
pub const fn blue(&self) -> u8
Blue Value These bits define the blue value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only.
pub fn set_blue(&mut self, val: u8)
pub fn set_blue(&mut self, val: u8)
Blue Value These bits define the blue value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only.
pub const fn green(&self) -> u8
pub const fn green(&self) -> u8
Green Value These bits define the green value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only.
pub fn set_green(&mut self, val: u8)
pub fn set_green(&mut self, val: u8)
Green Value These bits define the green value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only.
pub const fn red(&self) -> u8
pub const fn red(&self) -> u8
Red Value These bits define the red value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only.
pub fn set_red(&mut self, val: u8)
pub fn set_red(&mut self, val: u8)
Red Value These bits define the red value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only.
Trait Implementations§
impl Copy for Ocolr
impl Eq for Ocolr
impl StructuralPartialEq for Ocolr
Auto Trait Implementations§
impl Freeze for Ocolr
impl RefUnwindSafe for Ocolr
impl Send for Ocolr
impl Sync for Ocolr
impl Unpin for Ocolr
impl UnwindSafe for Ocolr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)