Type Alias esp32::sens::sar_atten2::W

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

Register SAR_ATTEN2 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn sar2_atten(&mut self) -> SAR2_ATTEN_W<'_, SAR_ATTEN2_SPEC>

Bits 0:31 - 2-bit attenuation for each pad 11:1dB 10:6dB 01:3dB 00:0dB

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