Type Alias d1_pac::spi0::spi_gcr::MODE_R

source ·
pub type MODE_R = BitReader<MODE_A>;
Expand description

Field mode reader - SPI Function Mode Select

Aliased Type§

struct MODE_R { /* private fields */ }

Implementations§

source§

impl MODE_R

source

pub fn variant(&self) -> MODE_A

Get enumerated values variant

source

pub fn is_slave(&self) -> bool

Checks if the value of the field is SLAVE

source

pub fn is_master(&self) -> bool

Checks if the value of the field is MASTER