#[repr(transparent)]pub struct Fcs(pub u32);
Expand description
FIFO control and status
Tuple Fields§
§0: u32
Implementations§
source§impl Fcs
impl Fcs
sourcepub const fn shift(&self) -> bool
pub const fn shift(&self) -> bool
If 1: FIFO results are right-shifted to be one byte in size. Enables DMA to byte buffers.
sourcepub fn set_shift(&mut self, val: bool)
pub fn set_shift(&mut self, val: bool)
If 1: FIFO results are right-shifted to be one byte in size. Enables DMA to byte buffers.
sourcepub const fn err(&self) -> bool
pub const fn err(&self) -> bool
If 1: conversion error bit appears in the FIFO alongside the result
sourcepub fn set_err(&mut self, val: bool)
pub fn set_err(&mut self, val: bool)
If 1: conversion error bit appears in the FIFO alongside the result
sourcepub fn set_dreq_en(&mut self, val: bool)
pub fn set_dreq_en(&mut self, val: bool)
If 1: assert DMA requests when FIFO contains data
pub const fn empty(&self) -> bool
pub fn set_empty(&mut self, val: bool)
pub const fn full(&self) -> bool
pub fn set_full(&mut self, val: bool)
sourcepub fn set_level(&mut self, val: u8)
pub fn set_level(&mut self, val: u8)
The number of conversion results currently waiting in the FIFO
sourcepub fn set_thresh(&mut self, val: u8)
pub fn set_thresh(&mut self, val: u8)
DREQ/IRQ asserted when level >= threshold
Trait Implementations§
impl Copy for Fcs
impl Eq for Fcs
impl StructuralPartialEq for Fcs
Auto Trait Implementations§
impl Freeze for Fcs
impl RefUnwindSafe for Fcs
impl Send for Fcs
impl Sync for Fcs
impl Unpin for Fcs
impl UnwindSafe for Fcs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)