Type Alias atsame54n::tcc0::fctrla::W

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

Register FCTRLA writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn src(&mut self) -> SRC_W<'_, FCTRLA_SPEC, 0>

Bits 0:1 - Fault A Source

source

pub fn keep(&mut self) -> KEEP_W<'_, FCTRLA_SPEC, 3>

Bit 3 - Fault A Keeper

source

pub fn qual(&mut self) -> QUAL_W<'_, FCTRLA_SPEC, 4>

Bit 4 - Fault A Qualification

source

pub fn blank(&mut self) -> BLANK_W<'_, FCTRLA_SPEC, 5>

Bits 5:6 - Fault A Blanking Mode

source

pub fn restart(&mut self) -> RESTART_W<'_, FCTRLA_SPEC, 7>

Bit 7 - Fault A Restart

source

pub fn halt(&mut self) -> HALT_W<'_, FCTRLA_SPEC, 8>

Bits 8:9 - Fault A Halt Mode

source

pub fn chsel(&mut self) -> CHSEL_W<'_, FCTRLA_SPEC, 10>

Bits 10:11 - Fault A Capture Channel

source

pub fn capture(&mut self) -> CAPTURE_W<'_, FCTRLA_SPEC, 12>

Bits 12:14 - Fault A Capture Action

source

pub fn blankpresc(&mut self) -> BLANKPRESC_W<'_, FCTRLA_SPEC, 15>

Bit 15 - Fault A Blanking Prescaler

source

pub fn blankval(&mut self) -> BLANKVAL_W<'_, FCTRLA_SPEC, 16>

Bits 16:23 - Fault A Blanking Time

source

pub fn filterval(&mut self) -> FILTERVAL_W<'_, FCTRLA_SPEC, 24>

Bits 24:27 - Fault A Filter Value

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