Type Alias nrf52840_pac::pdm::gainl::GAINL_W

source ·
pub type GAINL_W<'a, const O: u8> = FieldWriter<'a, u32, GAINL_SPEC, u8, GAINL_A, 7, O>;
Expand description

Field GAINL writer - Left output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters) 0x00 -20 dB gain adjust 0x01 -19.5 dB gain adjust (…) 0x27 -0.5 dB gain adjust 0x28 0 dB gain adjust 0x29 +0.5 dB gain adjust (…) 0x4F +19.5 dB gain adjust 0x50 +20 dB gain adjust

Aliased Type§

struct GAINL_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> GAINL_W<'a, O>

source

pub fn min_gain(self) -> &'a mut W

-20dB gain adjustment (minimum)

source

pub fn default_gain(self) -> &'a mut W

0dB gain adjustment

source

pub fn max_gain(self) -> &'a mut W

+20dB gain adjustment (maximum)