Type Alias rp2040_pac::adc::fcs::R

source ·
pub type R = R<FCS_SPEC>;
Expand description

Register FCS reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn en(&self) -> EN_R

Bit 0 - If 1: write result to the FIFO after each conversion.

source

pub fn shift(&self) -> SHIFT_R

Bit 1 - If 1: FIFO results are right-shifted to be one byte in size. Enables DMA to byte buffers.

source

pub fn err(&self) -> ERR_R

Bit 2 - If 1: conversion error bit appears in the FIFO alongside the result

source

pub fn dreq_en(&self) -> DREQ_EN_R

Bit 3 - If 1: assert DMA requests when FIFO contains data

source

pub fn empty(&self) -> EMPTY_R

Bit 8

source

pub fn full(&self) -> FULL_R

Bit 9

source

pub fn under(&self) -> UNDER_R

Bit 10 - 1 if the FIFO has been underflowed. Write 1 to clear.

source

pub fn over(&self) -> OVER_R

Bit 11 - 1 if the FIFO has been overflowed. Write 1 to clear.

source

pub fn level(&self) -> LEVEL_R

Bits 16:19 - The number of conversion results currently waiting in the FIFO

source

pub fn thresh(&self) -> THRESH_R

Bits 24:27 - DREQ/IRQ asserted when level >= threshold