Type Alias USIWM_R

Source
pub type USIWM_R = FieldReader<USIWM_A>;
Expand description

Field USIWM reader - USI Wire Mode Bits

Aliased Type§

struct USIWM_R { /* private fields */ }

Implementations§

Source§

impl USIWM_R

Source

pub const fn variant(&self) -> USIWM_A

Get enumerated values variant

Source

pub fn is_disabled(&self) -> bool

All detectors disabled. Port pins operates as normal.

Source

pub fn is_three_wire(&self) -> bool

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

Source

pub fn is_two_wire_slave(&self) -> bool

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

Source

pub fn is_two_wire_master(&self) -> bool

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