Type Alias esp32h2::uart0::sleep_conf2::W

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

Register SLEEP_CONF2 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn active_threshold( &mut self ) -> ACTIVE_THRESHOLD_W<'_, SLEEP_CONF2_SPEC, 0>

Bits 0:9 - The uart is activated from light sleeping mode when the input rxd edge changes more times than this register value.

source

pub fn rx_wake_up_thrhd( &mut self ) -> RX_WAKE_UP_THRHD_W<'_, SLEEP_CONF2_SPEC, 10>

Bits 10:17 - In wake up mode 1 this field is used to set the received data number threshold to wake up chip.

source

pub fn wk_char_num(&mut self) -> WK_CHAR_NUM_W<'_, SLEEP_CONF2_SPEC, 18>

Bits 18:20 - This register is used to select number of wake up char.

source

pub fn wk_char_mask(&mut self) -> WK_CHAR_MASK_W<'_, SLEEP_CONF2_SPEC, 21>

Bits 21:25 - This register is used to mask wake up char.

source

pub fn wk_mode_sel(&mut self) -> WK_MODE_SEL_W<'_, SLEEP_CONF2_SPEC, 26>

Bits 26:27 - This register is used to select wake up mode. 0: RXD toggling to wake up. 1: received data number larger than

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