atsamd21g::ac::compctrl

Type Alias IntselW

Source
pub type IntselW<'a, REG> = FieldWriter<'a, REG, 2, Intselselect, Safe>;
Expand description

Field INTSEL writer - Interrupt Selection

Aliased Type§

struct IntselW<'a, REG> { /* private fields */ }

Implementations§

Source§

impl<'a, REG> IntselW<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

Source

pub fn toggle(self) -> &'a mut W<REG>

Interrupt on comparator output toggle

Source

pub fn rising(self) -> &'a mut W<REG>

Interrupt on comparator output rising

Source

pub fn falling(self) -> &'a mut W<REG>

Interrupt on comparator output falling

Source

pub fn eoc(self) -> &'a mut W<REG>

Interrupt on end of comparison (single-shot mode only)