Type Alias rp2040_pac::vreg_and_chip_reset::bod::W

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

Register BOD writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn en(&mut self) -> EN_W<'_, BOD_SPEC>

Bit 0 - enable
0=not enabled, 1=enabled

source

pub fn vsel(&mut self) -> VSEL_W<'_, BOD_SPEC>

Bits 4:7 - threshold select
0000 - 0.473V
0001 - 0.516V
0010 - 0.559V
0011 - 0.602V
0100 - 0.645V
0101 - 0.688V
0110 - 0.731V
0111 - 0.774V
1000 - 0.817V
1001 - 0.860V (default)
1010 - 0.903V
1011 - 0.946V
1100 - 0.989V
1101 - 1.032V
1110 - 1.075V
1111 - 1.118V

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