#[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 clear_receive(&self) -> bool
const fn clear_receive(&self) -> bool
Clear the receive buffer
Bits: 1..2
sourceconst fn with_clear_receive(self, value: bool) -> Self
const fn with_clear_receive(self, value: bool) -> Self
Clear the receive buffer
Bits: 1..2
sourcefn set_clear_receive(&mut self, value: bool)
fn set_clear_receive(&mut self, value: bool)
Clear the receive buffer
Bits: 1..2
const CLEAR_TRANSMIT_BITS: usize = 1usize
const CLEAR_TRANSMIT_OFFSET: usize = 2usize
sourceconst fn clear_transmit(&self) -> bool
const fn clear_transmit(&self) -> bool
Clear the transmit buffer
Bits: 2..3
sourceconst fn with_clear_transmit(self, value: bool) -> Self
const fn with_clear_transmit(self, value: bool) -> Self
Clear the transmit buffer
Bits: 2..3
sourcefn set_clear_transmit(&mut self, value: bool)
fn set_clear_transmit(&mut self, value: bool)
Clear the transmit buffer
Bits: 2..3
const DMA_MODE_SELECT_BITS: usize = 1usize
const DMA_MODE_SELECT_OFFSET: usize = 3usize
sourceconst fn dma_mode_select(&self) -> bool
const fn dma_mode_select(&self) -> bool
Bits: 3..4
sourceconst fn with_dma_mode_select(self, value: bool) -> Self
const fn with_dma_mode_select(self, value: bool) -> Self
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 trigger_receive(&self) -> bool
const fn trigger_receive(&self) -> bool
Bits: 6..7
sourceconst fn with_trigger_receive(self, value: bool) -> Self
const fn with_trigger_receive(self, value: bool) -> Self
Bits: 6..7
sourcefn set_trigger_receive(&mut self, value: bool)
fn set_trigger_receive(&mut self, value: bool)
Bits: 6..7
Trait Implementations§
impl Copy for FifoCtl
Auto Trait Implementations§
impl Freeze for FifoCtl
impl RefUnwindSafe for FifoCtl
impl Send for FifoCtl
impl Sync for FifoCtl
impl Unpin for FifoCtl
impl UnwindSafe for FifoCtl
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.