Type Alias nrf52840_pac::pwm0::mode::UPDOWN_W

source ·
pub type UPDOWN_W<'a, const O: u8> = BitWriter<'a, u32, MODE_SPEC, UPDOWN_A, O>;
Expand description

Field UPDOWN writer - Selects up mode or up-and-down mode for the counter

Aliased Type§

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

Implementations§

source§

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

source

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

Up counter, edge-aligned PWM duty cycle

source

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

Up and down counter, center-aligned PWM duty cycle