Microchip® Advanced Software Framework

crccu.c File Reference

Cyclic Redundancy Check Calculation Unit (CRCCU) driver for SAM.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include "crccu.h"

Functions

void crccu_configure_descriptor (Crccu *p_crccu, uint32_t ul_crc_dscr_addr)
 Configure CRCCU descriptor. More...
 
void crccu_configure_mode (Crccu *p_crccu, uint32_t ul_mode)
 Configure the CRCCU mode. More...
 
void crccu_disable_dma (Crccu *p_crccu)
 Disable CRCCU. More...
 
void crccu_disable_dma_interrupt (Crccu *p_crccu)
 Disable CRCCU DMA transfer interrupt. More...
 
void crccu_disable_error_interrupt (Crccu *p_crccu)
 Disable cyclic redundancy check error interrupt. More...
 
void crccu_enable_dma (Crccu *p_crccu)
 Start CRCCU. More...
 
void crccu_enable_dma_interrupt (Crccu *p_crccu)
 Enable CRCCU DMA transfer interrupt. More...
 
void crccu_enable_error_interrupt (Crccu *p_crccu)
 Enable cyclic redundancy check error interrupt. More...
 
uint32_t crccu_get_dma_interrupt_mask (Crccu *p_crccu)
 Get DMA interrupt mask. More...
 
uint32_t crccu_get_dma_interrupt_status (Crccu *p_crccu)
 Check if DMA buffer transfer has been terminated. More...
 
uint32_t crccu_get_dma_status (Crccu *p_crccu)
 Check if DMA channel is enabled. More...
 
uint32_t crccu_get_error_interrupt_mask (Crccu *p_crccu)
 Get check CRC error interrupt mask. More...
 
uint32_t crccu_get_error_interrupt_status (Crccu *p_crccu)
 Check if there is a CRC error. More...
 
uint32_t crccu_read_crc_value (Crccu *p_crccu)
 Read cyclic redundancy check value. More...
 
void crccu_reset (Crccu *p_crccu)
 Reset CRCCU. More...