nrf52840_pac::pwm0::mode

Type Alias 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