Struct Cfgr1
#[repr(transparent)]pub struct Cfgr1(pub u32);
Expand description
configuration register 1
Tuple Fields§
§0: u32
Implementations§
§impl Cfgr1
impl Cfgr1
pub fn set_mem_mode(&mut self, val: MemMode)
pub fn set_mem_mode(&mut self, val: MemMode)
Memory mapping selection bits
pub const fn pa11_pa12_rmp(&self) -> bool
pub const fn pa11_pa12_rmp(&self) -> bool
PA11 and PA12 remapping bit.
pub fn set_pa11_pa12_rmp(&mut self, val: bool)
pub fn set_pa11_pa12_rmp(&mut self, val: bool)
PA11 and PA12 remapping bit.
pub fn set_ir_pol(&mut self, val: bool)
pub fn set_ir_pol(&mut self, val: bool)
IR output polarity selection
pub fn set_ir_mod(&mut self, val: u8)
pub fn set_ir_mod(&mut self, val: u8)
IR Modulation Envelope signal selection.
pub fn set_boosten(&mut self, val: bool)
pub fn set_boosten(&mut self, val: bool)
I/O analog switch voltage booster enable
pub const fn ucpd1_strobe(&self) -> bool
pub const fn ucpd1_strobe(&self) -> bool
Strobe signal bit for UCPD1
pub fn set_ucpd1_strobe(&mut self, val: bool)
pub fn set_ucpd1_strobe(&mut self, val: bool)
Strobe signal bit for UCPD1
pub const fn ucpd2_strobe(&self) -> bool
pub const fn ucpd2_strobe(&self) -> bool
Strobe signal bit for UCPD2
pub fn set_ucpd2_strobe(&mut self, val: bool)
pub fn set_ucpd2_strobe(&mut self, val: bool)
Strobe signal bit for UCPD2
pub const fn i2c_pbx_fmp(&self) -> u8
pub const fn i2c_pbx_fmp(&self) -> u8
Fast Mode Plus (FM+) driving capability activation bits
pub fn set_i2c_pbx_fmp(&mut self, val: u8)
pub fn set_i2c_pbx_fmp(&mut self, val: u8)
Fast Mode Plus (FM+) driving capability activation bits
pub fn set_i2c1_fmp(&mut self, val: bool)
pub fn set_i2c1_fmp(&mut self, val: bool)
FM+ driving capability activation for I2C1
pub fn set_i2c2_fmp(&mut self, val: bool)
pub fn set_i2c2_fmp(&mut self, val: bool)
FM+ driving capability activation for I2C2
pub const fn i2c_pax_fmp(&self) -> u8
pub const fn i2c_pax_fmp(&self) -> u8
Fast Mode Plus (FM+) driving capability activation bits
pub fn set_i2c_pax_fmp(&mut self, val: u8)
pub fn set_i2c_pax_fmp(&mut self, val: u8)
Fast Mode Plus (FM+) driving capability activation bits
Trait Implementations§
impl Copy for Cfgr1
impl Eq for Cfgr1
impl StructuralPartialEq for Cfgr1
Auto Trait Implementations§
impl Freeze for Cfgr1
impl RefUnwindSafe for Cfgr1
impl Send for Cfgr1
impl Sync for Cfgr1
impl Unpin for Cfgr1
impl UnwindSafe for Cfgr1
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