k210_pac::spi0::ctrlr0

Type Alias WORK_MODE_R

Source
pub type WORK_MODE_R = R<u8, WORK_MODE_A>;
Expand description

Reader of field work_mode

Aliased Type§

struct WORK_MODE_R { /* private fields */ }

Implementations§

Source§

impl WORK_MODE_R

Source

pub fn variant(&self) -> WORK_MODE_A

Get enumerated values variant

Source

pub fn is_mode0(&self) -> bool

Checks if the value of the field is MODE0

Source

pub fn is_mode1(&self) -> bool

Checks if the value of the field is MODE1

Source

pub fn is_mode2(&self) -> bool

Checks if the value of the field is MODE2

Source

pub fn is_mode3(&self) -> bool

Checks if the value of the field is MODE3