Struct rp2040_pac2::adc::regs::Fcs[][src]

#[repr(transparent)]pub struct Fcs(pub u32);

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]

impl Copy for Fcs[src]

impl Default for Fcs[src]

Auto Trait Implementations

impl Send for Fcs

impl Sync for Fcs

impl Unpin for Fcs

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.