pub struct CONTROL_SPEC;Expand description
Control register connect: Set this bit to ‘1’ to allow the associated USB device to connect to a host. low_speed_only: Set this bit to ‘1’ to force the device to operate at low speed. full_speed_only: Set this bit to ‘1’ to force the device to operate at full speed.
You can read this register and get control::R. You can reset, write, write_with_zero this register using control::W. You can also modify this register. See API.
Trait Implementations§
Source§impl RegisterSpec for CONTROL_SPEC
impl RegisterSpec for CONTROL_SPEC
Source§impl Resettable for CONTROL_SPEC
reset() method sets control to value 0
impl Resettable for CONTROL_SPEC
reset() method sets control to value 0
Source§const RESET_VALUE: u16 = 0u16
const RESET_VALUE: u16 = 0u16
Reset value of the register.
Source§fn reset_value() -> Self::Ux
fn reset_value() -> Self::Ux
Reset value of the register.
Source§impl Writable for CONTROL_SPEC
write(|w| ..) method takes control::W writer structure
impl Writable for CONTROL_SPEC
write(|w| ..) method takes control::W writer structure
Source§const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0u16
const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0u16
Specifies the register bits that are not changed if you pass
1 and are changed if you pass 0Source§const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0u16
const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0u16
Specifies the register bits that are not changed if you pass
0 and are changed if you pass 1impl Readable for CONTROL_SPEC
read() method returns control::R reader structure
Auto Trait Implementations§
impl Freeze for CONTROL_SPEC
impl RefUnwindSafe for CONTROL_SPEC
impl Send for CONTROL_SPEC
impl Sync for CONTROL_SPEC
impl Unpin for CONTROL_SPEC
impl UnwindSafe for CONTROL_SPEC
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