Struct rp2040_pac2::adc::regs::Fcs [−][src]
FIFO control and status
Implementations
impl Fcs
[src]
pub const fn thresh(&self) -> u8
[src]
DREQ/IRQ asserted when level >= threshold
pub fn set_thresh(&mut self, val: u8)
[src]
DREQ/IRQ asserted when level >= threshold
pub const fn level(&self) -> u8
[src]
The number of conversion results currently waiting in the FIFO
pub fn set_level(&mut self, val: u8)
[src]
The number of conversion results currently waiting in the FIFO
pub const fn over(&self) -> bool
[src]
1 if the FIFO has been overflowed. Write 1 to clear.
pub fn set_over(&mut self, val: bool)
[src]
1 if the FIFO has been overflowed. Write 1 to clear.
pub const fn under(&self) -> bool
[src]
1 if the FIFO has been underflowed. Write 1 to clear.
pub fn set_under(&mut self, val: bool)
[src]
1 if the FIFO has been underflowed. Write 1 to clear.
pub const fn full(&self) -> bool
[src]
pub fn set_full(&mut self, val: bool)
[src]
pub const fn empty(&self) -> bool
[src]
pub fn set_empty(&mut self, val: bool)
[src]
pub const fn dreq_en(&self) -> bool
[src]
If 1: assert DMA requests when FIFO contains data
pub fn set_dreq_en(&mut self, val: bool)
[src]
If 1: assert DMA requests when FIFO contains data
pub const fn err(&self) -> bool
[src]
If 1: conversion error bit appears in the FIFO alongside the result
pub fn set_err(&mut self, val: bool)
[src]
If 1: conversion error bit appears in the FIFO alongside the result
pub const fn shift(&self) -> bool
[src]
If 1: FIFO results are right-shifted to be one byte in size. Enables DMA to byte buffers.
pub fn set_shift(&mut self, val: bool)
[src]
If 1: FIFO results are right-shifted to be one byte in size. Enables DMA to byte buffers.
pub const fn en(&self) -> bool
[src]
If 1: write result to the FIFO after each conversion.
pub fn set_en(&mut self, val: bool)
[src]
If 1: write result to the FIFO after each conversion.
Trait Implementations
impl Clone for Fcs
[src]
fn clone(&self) -> Fcs
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Fcs
[src]
impl Default for Fcs
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,