#[repr(transparent)]pub struct UsbAlphaFieldsetXray(pub u8);Expand description
OTG Control.
Tuple Fields§
§0: u8Implementations§
Source§impl UsbAlphaFieldsetXray
impl UsbAlphaFieldsetXray
Sourcepub const fn otgen(&self) -> bool
pub const fn otgen(&self) -> bool
On-The-Go Pullup and Pulldown Resistor Enable. Raw bit values: false (0) = ConfigResistorsCtl: If USBENSOFEN is 1 and HOSTMODEEN is 0 in the Control Register (CTL), then the D+ Data line pullup resistors are enabled. If HOSTMODEEN is 1, then the D+ and D- Data line pulldown resistors are engaged.; true (1) = ConfigResistorsHere: Uses the pullup and pulldown controls in this register.
Sourcepub const fn set_otgen(&mut self, val: bool)
pub const fn set_otgen(&mut self, val: bool)
On-The-Go Pullup and Pulldown Resistor Enable. Raw bit values: false (0) = ConfigResistorsCtl: If USBENSOFEN is 1 and HOSTMODEEN is 0 in the Control Register (CTL), then the D+ Data line pullup resistors are enabled. If HOSTMODEEN is 1, then the D+ and D- Data line pulldown resistors are engaged.; true (1) = ConfigResistorsHere: Uses the pullup and pulldown controls in this register.
Sourcepub const fn dmlow(&self) -> bool
pub const fn dmlow(&self) -> bool
D- Data Line Pulldown Resistor Enable. Raw bit values: false (0) = DisDmPulldown: Disable.; true (1) = EnDmPulldown: Enable.
Sourcepub const fn set_dmlow(&mut self, val: bool)
pub const fn set_dmlow(&mut self, val: bool)
D- Data Line Pulldown Resistor Enable. Raw bit values: false (0) = DisDmPulldown: Disable.; true (1) = EnDmPulldown: Enable.
Sourcepub const fn dplow(&self) -> bool
pub const fn dplow(&self) -> bool
D+ Data Line pulldown Resistor Enable. Raw bit values: false (0) = DisDpPulldown: Disable.; true (1) = EnDpPulldown: Enable.
Sourcepub const fn set_dplow(&mut self, val: bool)
pub const fn set_dplow(&mut self, val: bool)
D+ Data Line pulldown Resistor Enable. Raw bit values: false (0) = DisDpPulldown: Disable.; true (1) = EnDpPulldown: Enable.
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§
Source§impl Clone for UsbAlphaFieldsetXray
impl Clone for UsbAlphaFieldsetXray
Source§fn clone(&self) -> UsbAlphaFieldsetXray
fn clone(&self) -> UsbAlphaFieldsetXray
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more