Struct Gotgctl
#[repr(transparent)]pub struct Gotgctl(pub u32);
Expand description
Control and status register
Tuple Fields§
§0: u32
Implementations§
§impl Gotgctl
impl Gotgctl
pub fn set_srqscs(&mut self, val: bool)
pub fn set_srqscs(&mut self, val: bool)
Session request success
pub fn set_vbvaloen(&mut self, val: bool)
pub fn set_vbvaloen(&mut self, val: bool)
VBUS valid override enable
pub fn set_vbvaloval(&mut self, val: bool)
pub fn set_vbvaloval(&mut self, val: bool)
VBUS valid override value
pub fn set_avaloen(&mut self, val: bool)
pub fn set_avaloen(&mut self, val: bool)
A-peripheral session valid override enable
pub fn set_avaloval(&mut self, val: bool)
pub fn set_avaloval(&mut self, val: bool)
A-peripheral session valid override value
pub fn set_bvaloen(&mut self, val: bool)
pub fn set_bvaloen(&mut self, val: bool)
B-peripheral session valid override enable
pub fn set_bvaloval(&mut self, val: bool)
pub fn set_bvaloval(&mut self, val: bool)
B-peripheral session valid override value
pub fn set_hngscs(&mut self, val: bool)
pub fn set_hngscs(&mut self, val: bool)
Host negotiation success
pub fn set_hshnpen(&mut self, val: bool)
pub fn set_hshnpen(&mut self, val: bool)
Host set HNP enable
pub fn set_dhnpen(&mut self, val: bool)
pub fn set_dhnpen(&mut self, val: bool)
Device HNP enabled
pub fn set_cidsts(&mut self, val: bool)
pub fn set_cidsts(&mut self, val: bool)
Connector ID status
Trait Implementations§
impl Copy for Gotgctl
impl Eq for Gotgctl
impl StructuralPartialEq for Gotgctl
Auto Trait Implementations§
impl Freeze for Gotgctl
impl RefUnwindSafe for Gotgctl
impl Send for Gotgctl
impl Sync for Gotgctl
impl Unpin for Gotgctl
impl UnwindSafe for Gotgctl
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)