pub type W = W<USBPHY_TRIM_SPEC>;
Expand description

Register USBPHY_TRIM writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn dp_pulldn_trim(&mut self) -> DP_PULLDN_TRIM_W<'_, USBPHY_TRIM_SPEC>

Bits 0:4 - Value to drive to USB PHY
DP pulldown resistor trim control
Experimental data suggests that the reset value will work, but this register allows adjustment if required

source

pub fn dm_pulldn_trim(&mut self) -> DM_PULLDN_TRIM_W<'_, USBPHY_TRIM_SPEC>

Bits 8:12 - Value to drive to USB PHY
DM pulldown resistor trim control
Experimental data suggests that the reset value will work, but this register allows adjustment if required

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual