Struct stm32_metapac::dsihost::regs::Wcfgr
#[repr(transparent)]pub struct Wcfgr(pub u32);
Expand description
DSI Wrapper configuration register.
Tuple Fields§
§0: u32
Implementations§
§impl Wcfgr
impl Wcfgr
pub const fn dsim(&self) -> bool
pub const fn dsim(&self) -> bool
DSI mode This bit selects the mode for the video transmission. This bit must only be changed when DSI Host is stopped (CR.EN = 0).
pub fn set_dsim(&mut self, val: bool)
pub fn set_dsim(&mut self, val: bool)
DSI mode This bit selects the mode for the video transmission. This bit must only be changed when DSI Host is stopped (CR.EN = 0).
pub const fn colmux(&self) -> u8
pub const fn colmux(&self) -> u8
Color multiplexing This bit selects the color multiplexing used by DSI Host. This field must only be changed when DSI is stopped (WCR.DSIEN = 0 and CR.ENÂ =Â 0).
pub fn set_colmux(&mut self, val: u8)
pub fn set_colmux(&mut self, val: u8)
Color multiplexing This bit selects the color multiplexing used by DSI Host. This field must only be changed when DSI is stopped (WCR.DSIEN = 0 and CR.ENÂ =Â 0).
pub const fn tesrc(&self) -> bool
pub const fn tesrc(&self) -> bool
TE source This bit selects the tearing effect (TE) source. This bit must only be changed when DSI Host is stopped (CR.EN = 0).
pub fn set_tesrc(&mut self, val: bool)
pub fn set_tesrc(&mut self, val: bool)
TE source This bit selects the tearing effect (TE) source. This bit must only be changed when DSI Host is stopped (CR.EN = 0).
pub const fn tepol(&self) -> bool
pub const fn tepol(&self) -> bool
TE polarity This bit selects the polarity of the external pin tearing effect (TE) source. This bit must only be changed when DSI Host is stopped (CR.EN = 0).
pub fn set_tepol(&mut self, val: bool)
pub fn set_tepol(&mut self, val: bool)
TE polarity This bit selects the polarity of the external pin tearing effect (TE) source. This bit must only be changed when DSI Host is stopped (CR.EN = 0).
pub const fn ar(&self) -> bool
pub const fn ar(&self) -> bool
Automatic refresh This bit selects the refresh mode in DBI mode. This bit must only be changed when DSI Host is stopped (CR.EN = 0).
pub fn set_ar(&mut self, val: bool)
pub fn set_ar(&mut self, val: bool)
Automatic refresh This bit selects the refresh mode in DBI mode. This bit must only be changed when DSI Host is stopped (CR.EN = 0).
Trait Implementations§
impl Copy for Wcfgr
impl Eq for Wcfgr
impl StructuralPartialEq for Wcfgr
Auto Trait Implementations§
impl Freeze for Wcfgr
impl RefUnwindSafe for Wcfgr
impl Send for Wcfgr
impl Sync for Wcfgr
impl Unpin for Wcfgr
impl UnwindSafe for Wcfgr
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
)