pub struct W(_);
Expand description
Register BCDR
writer
Implementations
sourceimpl W
impl W
sourcepub fn bcden(&mut self) -> BCDEN_W<'_, 0>
pub fn bcden(&mut self) -> BCDEN_W<'_, 0>
Bit 0 - Battery charging detector (BCD) enable Device mode This bit is set by the software to enable the BCD support within the USB device. When enabled, the USB PHY is fully controlled by BCD and cannot be used for normal communication. Once the BCD discovery is finished, the BCD should be placed in OFF mode by clearing this bit to ’0 in order to allow the normal USB operation.
sourcepub fn dcden(&mut self) -> DCDEN_W<'_, 1>
pub fn dcden(&mut self) -> DCDEN_W<'_, 1>
Bit 1 - Data contact detection (DCD) mode enable Device mode This bit is set by the software to put the BCD into DCD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly.
sourcepub fn pden(&mut self) -> PDEN_W<'_, 2>
pub fn pden(&mut self) -> PDEN_W<'_, 2>
Bit 2 - Primary detection (PD) mode enable Device mode This bit is set by the software to put the BCD into PD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly.
sourcepub fn sden(&mut self) -> SDEN_W<'_, 3>
pub fn sden(&mut self) -> SDEN_W<'_, 3>
Bit 3 - Secondary detection (SD) mode enable Device mode This bit is set by the software to put the BCD into SD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly.
sourcepub fn dppu_dpd(&mut self) -> DPPU_DPD_W<'_, 15>
pub fn dppu_dpd(&mut self) -> DPPU_DPD_W<'_, 15>
Bit 15 - DP pull-up / DPDM pull-down Device mode This bit is set by software to enable the embedded pull-up on DP line. Clearing it to ’0 can be used to signal disconnect to the host when needed by the user software. Host mode This bit is set by software to enable the embedded pull-down on DP and DM lines.
Methods from Deref<Target = W<BCDR_SPEC>>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more