#[repr(transparent)]pub struct Otgctl(pub u8);Expand description
OTG Control.
Tuple Fields§
§0: u8Implementations§
Source§impl Otgctl
impl Otgctl
Sourcepub const fn dphigh(&self) -> bool
pub const fn dphigh(&self) -> bool
D+ Data Line Pullup Resistor Enable. Raw bit values: false (0) = DisDpPullup: Disable.; true (1) = EnDpPullup: Enable.
Sourcepub const fn set_dphigh(&mut self, val: bool)
pub const fn set_dphigh(&mut self, val: bool)
D+ Data Line Pullup Resistor Enable. Raw bit values: false (0) = DisDpPullup: Disable.; true (1) = EnDpPullup: Enable.
Trait Implementations§
impl Copy for Otgctl
impl Eq for Otgctl
impl StructuralPartialEq for Otgctl
Auto Trait Implementations§
impl Freeze for Otgctl
impl RefUnwindSafe for Otgctl
impl Send for Otgctl
impl Sync for Otgctl
impl Unpin for Otgctl
impl UnwindSafe for Otgctl
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