#[repr(transparent)]struct FifoCtl(u8);
Expand description
FIFO Control Register
Tuple Fields§
§0: u8
Implementations§
source§impl FifoCtl
impl FifoCtl
const ENABLE_BITS: usize = 1usize
const ENABLE_OFFSET: usize = 0usize
sourceconst fn with_enable(self, value: bool) -> Self
const fn with_enable(self, value: bool) -> Self
0 means disabled ^= conforming to 8250a
Bits: 0..1
sourcefn set_enable(&mut self, value: bool)
fn set_enable(&mut self, value: bool)
0 means disabled ^= conforming to 8250a
Bits: 0..1
const CLEAR_RECEIVE_BITS: usize = 1usize
const CLEAR_RECEIVE_OFFSET: usize = 1usize
sourceconst fn with_clear_receive(self, value: bool) -> Self
const fn with_clear_receive(self, value: bool) -> Self
Bits: 1..2
sourceconst fn clear_receive(&self) -> bool
const fn clear_receive(&self) -> bool
Bits: 1..2
sourcefn set_clear_receive(&mut self, value: bool)
fn set_clear_receive(&mut self, value: bool)
Bits: 1..2
const CLEAR_TRANSMIT_BITS: usize = 1usize
const CLEAR_TRANSMIT_OFFSET: usize = 2usize
sourceconst fn with_clear_transmit(self, value: bool) -> Self
const fn with_clear_transmit(self, value: bool) -> Self
Bits: 2..3
sourceconst fn clear_transmit(&self) -> bool
const fn clear_transmit(&self) -> bool
Bits: 2..3
sourcefn set_clear_transmit(&mut self, value: bool)
fn set_clear_transmit(&mut self, value: bool)
Bits: 2..3
const DMA_MODE_SELECT_BITS: usize = 1usize
const DMA_MODE_SELECT_OFFSET: usize = 3usize
sourceconst fn with_dma_mode_select(self, value: bool) -> Self
const fn with_dma_mode_select(self, value: bool) -> Self
Bits: 3..4
sourceconst fn dma_mode_select(&self) -> bool
const fn dma_mode_select(&self) -> bool
Bits: 3..4
sourcefn set_dma_mode_select(&mut self, value: bool)
fn set_dma_mode_select(&mut self, value: bool)
Bits: 3..4
const TRIGGER_RECEIVE_BITS: usize = 1usize
const TRIGGER_RECEIVE_OFFSET: usize = 6usize
sourceconst fn with_trigger_receive(self, value: bool) -> Self
const fn with_trigger_receive(self, value: bool) -> Self
Bits: 6..7
sourceconst fn trigger_receive(&self) -> bool
const fn trigger_receive(&self) -> bool
Bits: 6..7
sourcefn set_trigger_receive(&mut self, value: bool)
fn set_trigger_receive(&mut self, value: bool)
Bits: 6..7