Type Alias USIWM_W

Source
pub type USIWM_W<'a, const O: u8> = FieldWriterSafe<'a, u8, USICR_SPEC, u8, USIWM_A, 2, O>;
Expand description

Field USIWM writer - USI Wire Mode Bits

Aliased Type§

struct USIWM_W<'a, const O: u8> { /* private fields */ }

Implementations§

Source§

impl<'a, const O: u8> USIWM_W<'a, O>

Source

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

All detectors disabled. Port pins operates as normal.

Source

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

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

Source

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

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

Source

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

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