Type Alias nrf52840_pac::pwm0::decoder::LOAD_W

source ·
pub type LOAD_W<'a, const O: u8> = FieldWriterSafe<'a, u32, DECODER_SPEC, u8, LOAD_A, 2, O>;
Expand description

Field LOAD writer - How a sequence is read from RAM and spread to the compare register

Aliased Type§

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

Implementations§

source§

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

source

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

1st half word (16-bit) used in all PWM channels 0..3

source

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

1st half word (16-bit) used in channel 0..1; 2nd word in channel 2..3

source

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

1st half word (16-bit) in ch.0; 2nd in ch.1; …; 4th in ch.3

source

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

1st half word (16-bit) in ch.0; 2nd in ch.1; …; 4th in COUNTERTOP