#[repr(transparent)]struct ModemCtl(u8);
Expand description
Modem Control Register
Tuple Fields§
§0: u8
Implementations§
source§impl ModemCtl
impl ModemCtl
const DATA_TERMINAL_READY_BITS: usize = 1usize
const DATA_TERMINAL_READY_OFFSET: usize = 0usize
sourceconst fn with_data_terminal_ready(self, value: bool) -> Self
const fn with_data_terminal_ready(self, value: bool) -> Self
Bits: 0..1
sourceconst fn data_terminal_ready(&self) -> bool
const fn data_terminal_ready(&self) -> bool
Bits: 0..1
sourcefn set_data_terminal_ready(&mut self, value: bool)
fn set_data_terminal_ready(&mut self, value: bool)
Bits: 0..1
const REQUEST_TO_SEND_BITS: usize = 1usize
const REQUEST_TO_SEND_OFFSET: usize = 1usize
sourceconst fn with_request_to_send(self, value: bool) -> Self
const fn with_request_to_send(self, value: bool) -> Self
Bits: 1..2
sourceconst fn request_to_send(&self) -> bool
const fn request_to_send(&self) -> bool
Bits: 1..2
sourcefn set_request_to_send(&mut self, value: bool)
fn set_request_to_send(&mut self, value: bool)
Bits: 1..2
const OUT1_BITS: usize = 1usize
const OUT1_OFFSET: usize = 2usize
const OUT2_BITS: usize = 1usize
const OUT2_OFFSET: usize = 3usize
const DO_LOOP_BITS: usize = 1usize
const DO_LOOP_OFFSET: usize = 4usize
sourceconst fn with_do_loop(self, value: bool) -> Self
const fn with_do_loop(self, value: bool) -> Self
Bits: 4..5
sourcefn set_do_loop(&mut self, value: bool)
fn set_do_loop(&mut self, value: bool)
Bits: 4..5