rp2040_pac::adc::fcs

Type Alias 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