Struct stm32_metapac::dsihost::regs::Ghcr
#[repr(transparent)]pub struct Ghcr(pub u32);
Expand description
DSI Host generic header configuration register.
Tuple Fields§
§0: u32
Implementations§
§impl Ghcr
impl Ghcr
pub fn set_dt(&mut self, val: u8)
pub fn set_dt(&mut self, val: u8)
Type This field configures the packet data type of the header packet.
pub const fn vcid(&self) -> u8
pub const fn vcid(&self) -> u8
Channel This field configures the virtual channel ID of the header packet.
pub fn set_vcid(&mut self, val: u8)
pub fn set_vcid(&mut self, val: u8)
Channel This field configures the virtual channel ID of the header packet.
pub const fn wclsb(&self) -> u8
pub const fn wclsb(&self) -> u8
WordCount LSB This field configures the less significant byte of the header packet word count for long packets, or data 0 for short packets.
pub fn set_wclsb(&mut self, val: u8)
pub fn set_wclsb(&mut self, val: u8)
WordCount LSB This field configures the less significant byte of the header packet word count for long packets, or data 0 for short packets.
Trait Implementations§
impl Copy for Ghcr
impl Eq for Ghcr
impl StructuralPartialEq for Ghcr
Auto Trait Implementations§
impl Freeze for Ghcr
impl RefUnwindSafe for Ghcr
impl Send for Ghcr
impl Sync for Ghcr
impl Unpin for Ghcr
impl UnwindSafe for Ghcr
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
)