#[repr(transparent)]struct Mode(u8);
Expand description
Mode register (only writable)
Tuple Fields§
§0: u8
Implementations§
source§impl Mode
impl Mode
const FORMAT_BITS: usize = 1usize
const FORMAT_OFFSET: usize = 0usize
sourceconst fn with_format(self, value: bool) -> Self
const fn with_format(self, value: bool) -> Self
Bits: 0..1
sourcefn set_format(&mut self, value: bool)
fn set_format(&mut self, value: bool)
Bits: 0..1
const OPERATION_BITS: usize = 3usize
const OPERATION_OFFSET: usize = 1usize
sourceconst fn with_operation(self, value: Operation) -> Self
const fn with_operation(self, value: Operation) -> Self
Bits: 1..4
sourcefn set_operation(&mut self, value: Operation)
fn set_operation(&mut self, value: Operation)
Bits: 1..4
const ACCESS_BITS: usize = 2usize
const ACCESS_OFFSET: usize = 4usize
sourceconst fn with_access(self, value: Access) -> Self
const fn with_access(self, value: Access) -> Self
Bits: 4..6
sourcefn set_access(&mut self, value: Access)
fn set_access(&mut self, value: Access)
Bits: 4..6
const CHANNEL_BITS: usize = 2usize
const CHANNEL_OFFSET: usize = 6usize
sourceconst fn with_channel(self, value: u8) -> Self
const fn with_channel(self, value: u8) -> Self
Bits: 6..8
sourcefn set_channel(&mut self, value: u8)
fn set_channel(&mut self, value: u8)
Bits: 6..8