#[repr(transparent)]pub struct NcCtrl2(pub u32);Expand description
USB Control 2. F70RM 44.5.1.3 (text line 111143). Preserve reserved bits. UTMI_CLK_VLD is W1C (write 0 has no effect). VBUS_SOURCE_SEL: 0 vbus_valid; 1,2,3 sess_valid; all four encodings are legal.
Tuple Fields§
§0: u32Implementations§
Source§impl NcCtrl2
impl NcCtrl2
Sourcepub const fn vbus_source_sel(&self) -> u8
pub const fn vbus_source_sel(&self) -> u8
VBUS Source Select. Raw encoding: 00b - vbus_valid; 01b - sess_valid; 10b - sess_valid; 11b - sess_valid.
Sourcepub const fn set_vbus_source_sel(&mut self, val: u8)
pub const fn set_vbus_source_sel(&mut self, val: u8)
VBUS Source Select. Raw encoding: 00b - vbus_valid; 01b - sess_valid; 10b - sess_valid; 11b - sess_valid.
Sourcepub const fn utmi_clk_vld(&self) -> bool
pub const fn utmi_clk_vld(&self) -> bool
UTMI Clock Valid Flag. Raw encoding: 0b - Not valid; 1b - Valid; 0b - No effect; 1b - Clear the flag.
Sourcepub const fn set_utmi_clk_vld(&mut self, val: bool)
pub const fn set_utmi_clk_vld(&mut self, val: bool)
UTMI Clock Valid Flag. Raw encoding: 0b - Not valid; 1b - Valid; 0b - No effect; 1b - Clear the flag.
Trait Implementations§
impl Copy for NcCtrl2
impl Eq for NcCtrl2
impl StructuralPartialEq for NcCtrl2
Auto Trait Implementations§
impl Freeze for NcCtrl2
impl RefUnwindSafe for NcCtrl2
impl Send for NcCtrl2
impl Sync for NcCtrl2
impl Unpin for NcCtrl2
impl UnwindSafe for NcCtrl2
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