dma_sniffer_enable() function
Enable the DMA sniffing targeting the specified channel The mode can be one of the following: Mode | Function -----|--------- 0x0 | Calculate a CRC-32 (IEEE802.3 polynomial) 0x1 | Calculate a CRC-32 (IEEE802.3 polynomial) with bit reversed data 0x2 | Calculate a CRC-16-CCITT 0x3 | Calculate a CRC-16-CCITT with bit reversed data 0xe | XOR reduction over all data. == 1 if the total 1 population count is odd. 0xf | Calculate a simple 32-bit checksum (addition with a 32 bit accumulator)
Arguments
force_channel_enable
Set true to also turn on sniffing in the channel configuration (this is usually what you want, but sometimes you might have a chain DMA with only certain segments of the chain sniffed, in which case you might pass false).
dma_sniffer_enable() calls 3 functions:
![]()
dma_sniffer_enable()
dma_sniffer_enable() reads 1 variable:
![]()
dma_sniffer_enable()