Type Alias atsamd51p::tcc0::wave::W

source ·
pub type W = W<WAVE_SPEC>;
Expand description

Register WAVE writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn wavegen(&mut self) -> WAVEGEN_W<'_, WAVE_SPEC, 0>

Bits 0:2 - Waveform Generation

source

pub fn ramp(&mut self) -> RAMP_W<'_, WAVE_SPEC, 4>

Bits 4:5 - Ramp Mode

source

pub fn ciperen(&mut self) -> CIPEREN_W<'_, WAVE_SPEC, 7>

Bit 7 - Circular period Enable

source

pub fn ciccen0(&mut self) -> CICCEN0_W<'_, WAVE_SPEC, 8>

Bit 8 - Circular Channel 0 Enable

source

pub fn ciccen1(&mut self) -> CICCEN1_W<'_, WAVE_SPEC, 9>

Bit 9 - Circular Channel 1 Enable

source

pub fn ciccen2(&mut self) -> CICCEN2_W<'_, WAVE_SPEC, 10>

Bit 10 - Circular Channel 2 Enable

source

pub fn ciccen3(&mut self) -> CICCEN3_W<'_, WAVE_SPEC, 11>

Bit 11 - Circular Channel 3 Enable

source

pub fn pol0(&mut self) -> POL0_W<'_, WAVE_SPEC, 16>

Bit 16 - Channel 0 Polarity

source

pub fn pol1(&mut self) -> POL1_W<'_, WAVE_SPEC, 17>

Bit 17 - Channel 1 Polarity

source

pub fn pol2(&mut self) -> POL2_W<'_, WAVE_SPEC, 18>

Bit 18 - Channel 2 Polarity

source

pub fn pol3(&mut self) -> POL3_W<'_, WAVE_SPEC, 19>

Bit 19 - Channel 3 Polarity

source

pub fn pol4(&mut self) -> POL4_W<'_, WAVE_SPEC, 20>

Bit 20 - Channel 4 Polarity

source

pub fn pol5(&mut self) -> POL5_W<'_, WAVE_SPEC, 21>

Bit 21 - Channel 5 Polarity

source

pub fn swap0(&mut self) -> SWAP0_W<'_, WAVE_SPEC, 24>

Bit 24 - Swap DTI Output Pair 0

source

pub fn swap1(&mut self) -> SWAP1_W<'_, WAVE_SPEC, 25>

Bit 25 - Swap DTI Output Pair 1

source

pub fn swap2(&mut self) -> SWAP2_W<'_, WAVE_SPEC, 26>

Bit 26 - Swap DTI Output Pair 2

source

pub fn swap3(&mut self) -> SWAP3_W<'_, WAVE_SPEC, 27>

Bit 27 - Swap DTI Output Pair 3

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