#[repr(transparent)]pub struct Otgsc(pub u32);Expand description
On-The-Go Status and Control. F70RM 44.6.1.33 (text line 115583). Mixed controls/read-only inputs and W1C interrupt status bits 22:16. Known reset mask 0xffdfc1ff, known value 0x20; bits 21 and 13:9 are unknown. Generated reset_value is a construction default only. HADP is a write command; do not replay commands or W1C flags with an unmasked read-modify-write.
Tuple Fields§
§0: u32Implementations§
Source§impl Otgsc
impl Otgsc
Sourcepub const fn haar(&self) -> bool
pub const fn haar(&self) -> bool
Hardware Assist Auto Reset. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn set_haar(&mut self, val: bool)
pub const fn set_haar(&mut self, val: bool)
Hardware Assist Auto Reset. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn hadp(&self) -> bool
pub const fn hadp(&self) -> bool
Hardware Assist Data Pulse. Write-only command. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn set_hadp(&mut self, val: bool)
pub const fn set_hadp(&mut self, val: bool)
Hardware Assist Data Pulse. Write-only command. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn haba(&self) -> bool
pub const fn haba(&self) -> bool
Hardware Assist B-Disconnect to A-connect. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn set_haba(&mut self, val: bool)
pub const fn set_haba(&mut self, val: bool)
Hardware Assist B-Disconnect to A-connect. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn id(&self) -> bool
pub const fn id(&self) -> bool
USB ID. Read-only status/value; writes do not configure this field. Raw encoding: 0b - A device; 1b - B device.
Sourcepub const fn set_id(&mut self, val: bool)
pub const fn set_id(&mut self, val: bool)
USB ID. Read-only status/value; writes do not configure this field. Raw encoding: 0b - A device; 1b - B device.
Sourcepub const fn avv(&self) -> bool
pub const fn avv(&self) -> bool
A VBUS Valid. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_avv(&mut self, val: bool)
pub const fn set_avv(&mut self, val: bool)
A VBUS Valid. Read-only status/value; writes do not configure this field.
Sourcepub const fn asv(&self) -> bool
pub const fn asv(&self) -> bool
A Session Valid. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_asv(&mut self, val: bool)
pub const fn set_asv(&mut self, val: bool)
A Session Valid. Read-only status/value; writes do not configure this field.
Sourcepub const fn bsv(&self) -> bool
pub const fn bsv(&self) -> bool
B Session Valid. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_bsv(&mut self, val: bool)
pub const fn set_bsv(&mut self, val: bool)
B Session Valid. Read-only status/value; writes do not configure this field.
Sourcepub const fn bse(&self) -> bool
pub const fn bse(&self) -> bool
B Session End. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_bse(&mut self, val: bool)
pub const fn set_bse(&mut self, val: bool)
B Session End. Read-only status/value; writes do not configure this field.
Sourcepub const fn tog_1ms(&self) -> bool
pub const fn tog_1ms(&self) -> bool
1 Millisecond Timer Toggle. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_tog_1ms(&mut self, val: bool)
pub const fn set_tog_1ms(&mut self, val: bool)
1 Millisecond Timer Toggle. Read-only status/value; writes do not configure this field.
Sourcepub const fn dps(&self) -> bool
pub const fn dps(&self) -> bool
Data Bus Pulsing Status. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_dps(&mut self, val: bool)
pub const fn set_dps(&mut self, val: bool)
Data Bus Pulsing Status. Read-only status/value; writes do not configure this field.
Sourcepub const fn status_1ms(&self) -> bool
pub const fn status_1ms(&self) -> bool
1 Millisecond Timer Interrupt Status.
Sourcepub const fn set_status_1ms(&mut self, val: bool)
pub const fn set_status_1ms(&mut self, val: bool)
1 Millisecond Timer Interrupt Status.
Sourcepub const fn set_en_1ms(&mut self, val: bool)
pub const fn set_en_1ms(&mut self, val: bool)
1 Millisecond Timer Interrupt Enable.