Struct GccfgV2
#[repr(transparent)]pub struct GccfgV2(pub u32);Expand description
General core configuration register
Tuple Fields§
§0: u32Implementations§
§impl GccfgV2
impl GccfgV2
pub const fn set_dcdet(&mut self, val: bool)
pub const fn set_dcdet(&mut self, val: bool)
Data contact detection (DCD) status (not on H7Rx/Sx and H5E/H5F)
pub const fn set_ps2det(&mut self, val: bool)
pub const fn set_ps2det(&mut self, val: bool)
DM pull-up detection status
pub const fn set_sessvld(&mut self, val: bool)
pub const fn set_sessvld(&mut self, val: bool)
VBUS session indicator (only on H7Rx/Sx OTG_FS, core_id 0x4000)
pub const fn set_pwrdwn(&mut self, val: bool)
pub const fn set_pwrdwn(&mut self, val: bool)
Power down
pub const fn dcden(&self) -> bool
pub const fn dcden(&self) -> bool
Data contact detection (DCD) mode enable (not on H7Rx/Sx and H5E/H5F)
pub const fn set_dcden(&mut self, val: bool)
pub const fn set_dcden(&mut self, val: bool)
Data contact detection (DCD) mode enable (not on H7Rx/Sx and H5E/H5F)
pub const fn phyhsen(&self) -> bool
pub const fn phyhsen(&self) -> bool
Internal high-speed PHY enable. Not documented in any RM (from the F7x3 CMSIS header).
pub const fn set_phyhsen(&mut self, val: bool)
pub const fn set_phyhsen(&mut self, val: bool)
Internal high-speed PHY enable. Not documented in any RM (from the F7x3 CMSIS header).
pub const fn compdis(&self) -> bool
pub const fn compdis(&self) -> bool
Output resistance compensation disable (only on H5E/H5F OTG_FS, core_id 0x5100)
pub const fn set_compdis(&mut self, val: bool)
pub const fn set_compdis(&mut self, val: bool)
Output resistance compensation disable (only on H5E/H5F OTG_FS, core_id 0x5100)
pub const fn forcehostpd(&self) -> bool
pub const fn forcehostpd(&self) -> bool
Force host mode pull-downs (only on H5E/H5F OTG_FS, core_id 0x5100)
pub const fn set_forcehostpd(&mut self, val: bool)
pub const fn set_forcehostpd(&mut self, val: bool)
Force host mode pull-downs (only on H5E/H5F OTG_FS, core_id 0x5100)