Struct stm32_metapac::dsihost::regs::Vpcr
#[repr(transparent)]pub struct Vpcr(pub u32);
Expand description
DSI Host video packet configuration register.
Tuple Fields§
§0: u32
Implementations§
§impl Vpcr
impl Vpcr
pub const fn vpsize(&self) -> u16
pub const fn vpsize(&self) -> u16
Video packet size This field configures the number of pixels in a single video packet. For 18-bit not loosely packed data types, this number must be a multiple of 4. For YCbCr data types, it must be a multiple of 2 as described in the DSI specification.
pub fn set_vpsize(&mut self, val: u16)
pub fn set_vpsize(&mut self, val: u16)
Video packet size This field configures the number of pixels in a single video packet. For 18-bit not loosely packed data types, this number must be a multiple of 4. For YCbCr data types, it must be a multiple of 2 as described in the DSI specification.
Trait Implementations§
impl Copy for Vpcr
impl Eq for Vpcr
impl StructuralPartialEq for Vpcr
Auto Trait Implementations§
impl Freeze for Vpcr
impl RefUnwindSafe for Vpcr
impl Send for Vpcr
impl Sync for Vpcr
impl Unpin for Vpcr
impl UnwindSafe for Vpcr
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)