Type Alias nrf52840_pac::pwm0::prescaler::PRESCALER_W

source ·
pub type PRESCALER_W<'a, const O: u8> = FieldWriterSafe<'a, u32, PRESCALER_SPEC, u8, PRESCALER_A, 3, O>;
Expand description

Field PRESCALER writer - Prescaler of PWM_CLK

Aliased Type§

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

Implementations§

source§

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

source

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

Divide by 1 (16 MHz)

source

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

Divide by 2 (8 MHz)

source

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

Divide by 4 (4 MHz)

source

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

Divide by 8 (2 MHz)

source

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

Divide by 16 (1 MHz)

source

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

Divide by 32 (500 kHz)

source

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

Divide by 64 (250 kHz)

source

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

Divide by 128 (125 kHz)