Type Alias avr_device::attiny85::usi::usicr::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.