#[repr(transparent)]pub struct Usb1VbusDetStat(pub u32);Expand description
VBUS Detect Status. F70RM 42.7.12 (text line 105578). Read-only, including its SET/CLR/TOG address aliases. SESSEND is the inverse session-valid result; RM prose says both below/above and the encoding table states 0 above, 1 below. That source conflict is retained explicitly; no voltage-named enum is supplied.
Tuple Fields§
§0: u32Implementations§
Source§impl Usb1VbusDetStat
impl Usb1VbusDetStat
Sourcepub const fn sessend(&self) -> bool
pub const fn sessend(&self) -> bool
Session End Indicator. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Above threshold; 1b - Below threshold.
Sourcepub const fn set_sessend(&mut self, val: bool)
pub const fn set_sessend(&mut self, val: bool)
Session End Indicator. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Above threshold; 1b - Below threshold.
Sourcepub const fn bvalid(&self) -> bool
pub const fn bvalid(&self) -> bool
B-Device Session Valid Status. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Below threshold; 1b - Above threshold.
Sourcepub const fn set_bvalid(&mut self, val: bool)
pub const fn set_bvalid(&mut self, val: bool)
B-Device Session Valid Status. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Below threshold; 1b - Above threshold.
Sourcepub const fn avalid(&self) -> bool
pub const fn avalid(&self) -> bool
A-Device Session Valid Status. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Below threshold; 1b - Above threshold.
Sourcepub const fn set_avalid(&mut self, val: bool)
pub const fn set_avalid(&mut self, val: bool)
A-Device Session Valid Status. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Below threshold; 1b - Above threshold.
Sourcepub const fn vbus_valid(&self) -> bool
pub const fn vbus_valid(&self) -> bool
VBUS Voltage Status. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Below threshold; 1b - Above threshold.
Sourcepub const fn set_vbus_valid(&mut self, val: bool)
pub const fn set_vbus_valid(&mut self, val: bool)
VBUS Voltage Status. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Below threshold; 1b - Above threshold.
Sourcepub const fn vbus_valid_3v(&self) -> bool
pub const fn vbus_valid_3v(&self) -> bool
VBUS_VALID_3V Detector Status. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Below threshold; 1b - Above threshold.
Sourcepub const fn set_vbus_valid_3v(&mut self, val: bool)
pub const fn set_vbus_valid_3v(&mut self, val: bool)
VBUS_VALID_3V Detector Status. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Below threshold; 1b - Above threshold.
Sourcepub const fn ext_id(&self) -> bool
pub const fn ext_id(&self) -> bool
OTG ID External Override Status. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_ext_id(&mut self, val: bool)
pub const fn set_ext_id(&mut self, val: bool)
OTG ID External Override Status. Read-only status/value; writes do not configure this field.
Trait Implementations§
Source§impl Clone for Usb1VbusDetStat
impl Clone for Usb1VbusDetStat
Source§fn clone(&self) -> Usb1VbusDetStat
fn clone(&self) -> Usb1VbusDetStat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more