Type Alias rp2040_pac::adc::fcs::W

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

Register FCS writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn en(&mut self) -> EN_W<'_, FCS_SPEC>

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

source

pub fn shift(&mut self) -> SHIFT_W<'_, FCS_SPEC>

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

source

pub fn err(&mut self) -> ERR_W<'_, FCS_SPEC>

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

source

pub fn dreq_en(&mut self) -> DREQ_EN_W<'_, FCS_SPEC>

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

source

pub fn under(&mut self) -> UNDER_W<'_, FCS_SPEC>

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

source

pub fn over(&mut self) -> OVER_W<'_, FCS_SPEC>

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

source

pub fn thresh(&mut self) -> THRESH_W<'_, FCS_SPEC>

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

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual