Type Alias W

Source
pub type W = W<THRESHOLD_SPEC>;
Expand description

Register threshold[%s] writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn low(&mut self) -> LOW_W<'_, THRESHOLD_SPEC>

Bits 0:15 - Lowest value for internal counter that sets positive signal to 1 and negative to 0

Source

pub fn high(&mut self) -> HIGH_W<'_, THRESHOLD_SPEC>

Bits 16:31 - Highest value for internal counter that sets positive signal to 1 and negative to 0

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