pub type W = W<USB1_CHRG_DETECT_SPEC>;
Expand description

Register USB1_CHRG_DETECT writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn detect_sec(&mut self) -> DETECT_SEC_W<'_, USB1_CHRG_DETECT_SPEC>

Bit 1 - Enables BC v1.2 Secondary Detection function for Charger Detect depending on other bit fields (active high)

source

pub fn pullup_dp(&mut self) -> PULLUP_DP_W<'_, USB1_CHRG_DETECT_SPEC>

Bit 2 - DP pullup resistor enable override control

source

pub fn vdm_src_enable(&mut self) -> VDM_SRC_ENABLE_W<'_, USB1_CHRG_DETECT_SPEC>

Bit 4 - Enables BC v1.2 Charging Downstream Port (CDP) advertisement signaling for Charger Detect depending on other bit fields (active high).

source

pub fn chk_contact(&mut self) -> CHK_CONTACT_W<'_, USB1_CHRG_DETECT_SPEC>

Bit 18 - Enables BC v1.2 Data Contact Detect function for Charger Detect depending on other bit fields (active high)

source

pub fn chk_chrg_b(&mut self) -> CHK_CHRG_B_W<'_, USB1_CHRG_DETECT_SPEC>

Bit 19 - Enables BC v1.2 Primary Detection function for Charger Detect depending on other bit fields (active low)

source

pub fn en_b(&mut self) -> EN_B_W<'_, USB1_CHRG_DETECT_SPEC>

Bit 20 - Enables selection of BC v1.2 functions depending on other bit fields (active low)

source

pub fn dcdsel(&mut self) -> DCDSEL_W<'_, USB1_CHRG_DETECT_SPEC>

Bit 31 - Selects control source for Battery Charging Detection/Advertisement circuits

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