Type Alias esp32::mcpwm0::gen2_b::W

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

Register GEN2_B writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn utez(&mut self) -> UTEZ_W<'_, GEN2_B_SPEC, 0>

Bits 0:1

source

pub fn utep(&mut self) -> UTEP_W<'_, GEN2_B_SPEC, 2>

Bits 2:3

source

pub fn utea(&mut self) -> UTEA_W<'_, GEN2_B_SPEC, 4>

Bits 4:5

source

pub fn uteb(&mut self) -> UTEB_W<'_, GEN2_B_SPEC, 6>

Bits 6:7

source

pub fn ut0(&mut self) -> UT0_W<'_, GEN2_B_SPEC, 8>

Bits 8:9

source

pub fn ut1(&mut self) -> UT1_W<'_, GEN2_B_SPEC, 10>

Bits 10:11

source

pub fn dtez(&mut self) -> DTEZ_W<'_, GEN2_B_SPEC, 12>

Bits 12:13

source

pub fn dtep(&mut self) -> DTEP_W<'_, GEN2_B_SPEC, 14>

Bits 14:15

source

pub fn dtea(&mut self) -> DTEA_W<'_, GEN2_B_SPEC, 16>

Bits 16:17

source

pub fn dteb(&mut self) -> DTEB_W<'_, GEN2_B_SPEC, 18>

Bits 18:19

source

pub fn dt0(&mut self) -> DT0_W<'_, GEN2_B_SPEC, 20>

Bits 20:21

source

pub fn dt1(&mut self) -> DT1_W<'_, GEN2_B_SPEC, 22>

Bits 22:23

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