Type Alias rp2040_pac::dma::sniff_ctrl::CALC_W

source ·
pub type CALC_W<'a, REG> = FieldWriter<'a, REG, 4, CALC_A>;
Expand description

Field CALC writer -

Aliased Type§

struct CALC_W<'a, REG> { /* private fields */ }

Implementations§

source§

impl<'a, REG> CALC_W<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

source

pub fn crc32(self) -> &'a mut W<REG>

Calculate a CRC-32 (IEEE802.3 polynomial)

source

pub fn crc32r(self) -> &'a mut W<REG>

Calculate a CRC-32 (IEEE802.3 polynomial) with bit reversed data

source

pub fn crc16(self) -> &'a mut W<REG>

Calculate a CRC-16-CCITT

source

pub fn crc16r(self) -> &'a mut W<REG>

Calculate a CRC-16-CCITT with bit reversed data

source

pub fn even(self) -> &'a mut W<REG>

XOR reduction over all data. == 1 if the total 1 population count is odd.

source

pub fn sum(self) -> &'a mut W<REG>

Calculate a simple 32-bit checksum (addition with a 32 bit accumulator)