Type Alias W

Source
pub type W = W<CONFIG_SPEC>;
Expand description

Register config writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn stop_on_repeat(&mut self) -> STOP_ON_REPEAT_W<'_, CONFIG_SPEC>

Bit 19 - Enable or disable stop on one repeat cycle completed

Source

pub fn adc_trigger_source(&mut self) -> ADC_TRIGGER_SOURCE_W<'_, CONFIG_SPEC>

Bits 20:23 - Select channel in Analog-to-Digital Converter to interact with this peripheral

This field only works with PWM0. PWM1 does not have this feature.

Source

pub fn software_break(&mut self) -> SOFTWARE_BREAK_W<'_, CONFIG_SPEC>

Bit 24 - Enable software signal break

Source

pub fn external_break(&mut self) -> EXTERNAL_BREAK_W<'_, CONFIG_SPEC>

Bit 25 - Enable external pin signal break

Source

pub fn external_polarity(&mut self) -> EXTERNAL_POLARITY_W<'_, CONFIG_SPEC>

Bit 26 - Polarity for external pin break function

Source

pub fn stop_function(&mut self) -> STOP_FUNCTION_W<'_, CONFIG_SPEC>

Bit 27 - Enable or disable stop function

Source

pub fn stop_mode(&mut self) -> STOP_MODE_W<'_, CONFIG_SPEC>

Bit 28 - Mode to stop this peripheral

Source

pub fn stop_state(&mut self) -> STOP_STATE_W<'_, CONFIG_SPEC>

Bit 29 - Is this peripheral stopped?

Source

pub fn clock_select(&mut self) -> CLOCK_SELECT_W<'_, CONFIG_SPEC>

Bits 30:31 - Select group clock source

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual