#[repr(transparent)]pub struct Usbmode(pub u32);Expand description
USB Device Mode. F70RM 44.6.1.34 (text line 115822). CM is programmed once after reset on this host/device controller; changing mode requires controller reset. CM: 0 idle, 1 reserved, 2 device, 3 host. SLOM=0 enables setup lockouts; SLOM=1 disables them and requires the setup-data tripwire.
Tuple Fields§
§0: u32Implementations§
Source§impl Usbmode
impl Usbmode
Sourcepub const fn cm(&self) -> u8
pub const fn cm(&self) -> u8
Controller Mode. Raw encoding: 00b - Idle (default for host and device combination); 01b - Reserved; 10b - Device controller (default for device-only controller); 11b - Host controller (default for host-only controller).
Sourcepub const fn set_cm(&mut self, val: u8)
pub const fn set_cm(&mut self, val: u8)
Controller Mode. Raw encoding: 00b - Idle (default for host and device combination); 01b - Reserved; 10b - Device controller (default for device-only controller); 11b - Host controller (default for host-only controller).
Sourcepub const fn es(&self) -> bool
pub const fn es(&self) -> bool
Endian Select. Raw encoding: 0b - Little endian (default); 1b - Big endian.
Sourcepub const fn set_es(&mut self, val: bool)
pub const fn set_es(&mut self, val: bool)
Endian Select. Raw encoding: 0b - Little endian (default); 1b - Big endian.
Sourcepub const fn slom(&self) -> bool
pub const fn slom(&self) -> bool
Setup Lockout Mode. Raw encoding: 0b - On (default); 1b - Off.
Sourcepub const fn set_slom(&mut self, val: bool)
pub const fn set_slom(&mut self, val: bool)
Setup Lockout Mode. Raw encoding: 0b - On (default); 1b - Off.