Type Alias USIWM_W

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

Field USIWM writer - USI Wire Mode Bits

Aliased Type§

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

Implementations§

Source§

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

Source

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

All detectors disabled. Port pins operates as normal.

Source

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

Three-wire mode. Uses DO, DI, and USCK pins.

Source

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

Two-wire mode (Slave). Uses SDA (DI) and SCL (USCK) pins.

Source

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

Two-wire mode (Master). Uses SDA and SCL pins.