Struct stm32_metapac::otg::regs::GccfgV3
#[repr(transparent)]pub struct GccfgV3(pub u32);
Expand description
OTG general core configuration register.
Tuple Fields§
§0: u32
Implementations§
§impl GccfgV3
impl GccfgV3
pub const fn chgdet(&self) -> bool
pub const fn chgdet(&self) -> bool
Charger detection, result of the current mode (primary or secondary).
pub fn set_chgdet(&mut self, val: bool)
pub fn set_chgdet(&mut self, val: bool)
Charger detection, result of the current mode (primary or secondary).
pub const fn fsvplus(&self) -> bool
pub const fn fsvplus(&self) -> bool
Single-Ended DP indicator This bit gives the voltage level on DP (also result of the comparison with VLGC threshold as defined in BC v1.2 standard).
pub fn set_fsvplus(&mut self, val: bool)
pub fn set_fsvplus(&mut self, val: bool)
Single-Ended DP indicator This bit gives the voltage level on DP (also result of the comparison with VLGC threshold as defined in BC v1.2 standard).
pub const fn fsvminus(&self) -> bool
pub const fn fsvminus(&self) -> bool
Single-Ended DM indicator This bit gives the voltage level on DM (also result of the comparison with VLGC threshold as defined in BC v1.2 standard).
pub fn set_fsvminus(&mut self, val: bool)
pub fn set_fsvminus(&mut self, val: bool)
Single-Ended DM indicator This bit gives the voltage level on DM (also result of the comparison with VLGC threshold as defined in BC v1.2 standard).
pub const fn sessvld(&self) -> bool
pub const fn sessvld(&self) -> bool
VBUS session indicator Indicates if VBUS is above VBUS session threshold.
pub fn set_sessvld(&mut self, val: bool)
pub fn set_sessvld(&mut self, val: bool)
VBUS session indicator Indicates if VBUS is above VBUS session threshold.
pub fn set_hcdpen(&mut self, val: bool)
pub fn set_hcdpen(&mut self, val: bool)
Host CDP behavior enable.
pub fn set_hcdpdeten(&mut self, val: bool)
pub fn set_hcdpdeten(&mut self, val: bool)
Host CDP port voltage detector enable on DP.
pub fn set_hvdmsrcen(&mut self, val: bool)
pub fn set_hvdmsrcen(&mut self, val: bool)
Host CDP port Voltage source enable on DM.
pub const fn vbden(&self) -> bool
pub const fn vbden(&self) -> bool
VBUS detection enable Enables VBUS Sensing Comparators in order to detect VBUS presence and/or perform OTG operation.
pub fn set_vbden(&mut self, val: bool)
pub fn set_vbden(&mut self, val: bool)
VBUS detection enable Enables VBUS Sensing Comparators in order to detect VBUS presence and/or perform OTG operation.
pub fn set_vbvaloval(&mut self, val: bool)
pub fn set_vbvaloval(&mut self, val: bool)
Software override value of the VBUS B-session detection.
pub fn set_vbvaloven(&mut self, val: bool)
pub fn set_vbvaloven(&mut self, val: bool)
Enables a software override of the VBUS B-session detection.
pub const fn forcehostpd(&self) -> bool
pub const fn forcehostpd(&self) -> bool
Force host mode pull-downs If the ID pin functions are enabled, the host mode pull-downs on DP and DM activate automatically. However, whenever that is not the case, yet host mode is required, this bit must be used to force the pull-downs active.
pub fn set_forcehostpd(&mut self, val: bool)
pub fn set_forcehostpd(&mut self, val: bool)
Force host mode pull-downs If the ID pin functions are enabled, the host mode pull-downs on DP and DM activate automatically. However, whenever that is not the case, yet host mode is required, this bit must be used to force the pull-downs active.
Trait Implementations§
impl Copy for GccfgV3
impl Eq for GccfgV3
impl StructuralPartialEq for GccfgV3
Auto Trait Implementations§
impl Freeze for GccfgV3
impl RefUnwindSafe for GccfgV3
impl Send for GccfgV3
impl Sync for GccfgV3
impl Unpin for GccfgV3
impl UnwindSafe for GccfgV3
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
)