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).