atsamd21g::eic::config

Type Alias Sense1W

Source
pub type Sense1W<'a, REG> = FieldWriter<'a, REG, 3, Sense1select>;
Expand description

Field SENSE1 writer - Input Sense 1 Configuration

Aliased Type§

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

Implementations§

Source§

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

Source

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

No detection

Source

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

Rising edge detection

Source

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

Falling edge detection

Source

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

Both edges detection

Source

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

High level detection

Source

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

Low level detection