#[repr(transparent)]pub struct GccfgV3(pub u32);
Expand description
OTG general core configuration register.
Tuple Fields§
§0: u32
Implementations§
Source§impl GccfgV3
impl GccfgV3
Sourcepub const fn chgdet(&self) -> bool
pub const fn chgdet(&self) -> bool
Charger detection, result of the current mode (primary or secondary).
Sourcepub 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).
Sourcepub 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).
Sourcepub 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).
Sourcepub 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).
Sourcepub 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).
Sourcepub const fn sessvld(&self) -> bool
pub const fn sessvld(&self) -> bool
VBUS session indicator Indicates if VBUS is above VBUS session threshold.
Sourcepub 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.
Sourcepub fn set_hcdpen(&mut self, val: bool)
pub fn set_hcdpen(&mut self, val: bool)
Host CDP behavior enable.
Sourcepub fn set_hcdpdeten(&mut self, val: bool)
pub fn set_hcdpdeten(&mut self, val: bool)
Host CDP port voltage detector enable on DP.
Sourcepub fn set_hvdmsrcen(&mut self, val: bool)
pub fn set_hvdmsrcen(&mut self, val: bool)
Host CDP port Voltage source enable on DM.
Sourcepub 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.
Sourcepub 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.
Sourcepub fn set_vbvaloval(&mut self, val: bool)
pub fn set_vbvaloval(&mut self, val: bool)
Software override value of the VBUS B-session detection.
Sourcepub const fn vbvaloven(&self) -> bool
pub const fn vbvaloven(&self) -> bool
Enables a software override of the VBUS B-session detection.
Sourcepub 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.
Sourcepub 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.
Sourcepub 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
)