Type Alias ECE_W

Source
pub type ECE_W<'a, REG> = BitWriter<'a, REG, ECE>;
Expand description

Field ECE writer - External clock enable This bit enables External clock mode 2. Note: Setting the ECE bit has the same effect as selecting external clock mode 1 with TRGI connected to ETRF (SMS=111 and TS=00111). It is possible to simultaneously use external clock mode 2 with the following slave modes: reset mode, gated mode and trigger mode. Nevertheless, TRGI must not be connected to ETRF in this case (TS bits must not be 00111). If external clock mode 1 and external clock mode 2 are enabled at the same time, the external clock input is ETRF.

Aliased Type§

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

Implementations§

Source§

impl<'a, REG> ECE_W<'a, REG>
where REG: Writable + RegisterSpec,

Source

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

External clock mode 2 disabled

Source

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

External clock mode 2 enabled. The counter is clocked by any active edge on the ETRF signal.