Type Alias esp32s3::usb0::hprt::W

source ·
pub type W = W<HPRT_SPEC>;
Expand description

Register HPRT writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn prtconndet(&mut self) -> PRTCONNDET_W<'_, HPRT_SPEC, 1>

Bit 1

source

pub fn prtena(&mut self) -> PRTENA_W<'_, HPRT_SPEC, 2>

Bit 2

source

pub fn prtenchng(&mut self) -> PRTENCHNG_W<'_, HPRT_SPEC, 3>

Bit 3

source

pub fn prtovrcurrchng(&mut self) -> PRTOVRCURRCHNG_W<'_, HPRT_SPEC, 5>

Bit 5

source

pub fn prtres(&mut self) -> PRTRES_W<'_, HPRT_SPEC, 6>

Bit 6

source

pub fn prtsusp(&mut self) -> PRTSUSP_W<'_, HPRT_SPEC, 7>

Bit 7

source

pub fn prtrst(&mut self) -> PRTRST_W<'_, HPRT_SPEC, 8>

Bit 8

source

pub fn prtpwr(&mut self) -> PRTPWR_W<'_, HPRT_SPEC, 12>

Bit 12

source

pub fn prttstctl(&mut self) -> PRTTSTCTL_W<'_, HPRT_SPEC, 13>

Bits 13:16

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