Type Alias esp32h2::ledc::timer_cmp::W

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

Register TIMER%s_CMP writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn timer_cmp(&mut self) -> TIMER_CMP_W<'_, TIMER_CMP_SPEC>

Bits 0:19 - This register stores ledc timer%s compare value.

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