Struct rp_pac::clocks::regs::ClkUsbSelected
source · #[repr(transparent)]pub struct ClkUsbSelected(pub u32);
Expand description
Indicates which src is currently selected (one-hot)
Tuple Fields§
§0: u32
Implementations§
source§impl ClkUsbSelected
impl ClkUsbSelected
sourcepub const fn clk_usb_selected(&self) -> bool
pub const fn clk_usb_selected(&self) -> bool
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.
sourcepub fn set_clk_usb_selected(&mut self, val: bool)
pub fn set_clk_usb_selected(&mut self, val: bool)
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1.
Trait Implementations§
source§impl Clone for ClkUsbSelected
impl Clone for ClkUsbSelected
source§fn clone(&self) -> ClkUsbSelected
fn clone(&self) -> ClkUsbSelected
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ClkUsbSelected
impl Default for ClkUsbSelected
source§fn default() -> ClkUsbSelected
fn default() -> ClkUsbSelected
Returns the “default value” for a type. Read more
source§impl PartialEq for ClkUsbSelected
impl PartialEq for ClkUsbSelected
impl Copy for ClkUsbSelected
impl Eq for ClkUsbSelected
impl StructuralPartialEq for ClkUsbSelected
Auto Trait Implementations§
impl Freeze for ClkUsbSelected
impl RefUnwindSafe for ClkUsbSelected
impl Send for ClkUsbSelected
impl Sync for ClkUsbSelected
impl Unpin for ClkUsbSelected
impl UnwindSafe for ClkUsbSelected
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)