Cyclic Redundancy Check Calculation Unit (CRCCU) driver for SAM.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
#include "compiler.h"
Data Structures | |
struct | crccu_dscr_type |
CRCCU descriptor type. More... | |
Macros | |
#define | CRCCU_TR_CTRL_IEN_DISABLE (1 << CRCCU_TR_CTRL_IEN_OFFSET) |
#define | CRCCU_TR_CTRL_IEN_ENABLE (0 << CRCCU_TR_CTRL_IEN_OFFSET) |
#define | CRCCU_TR_CTRL_IEN_OFFSET (27) |
#define | CRCCU_TR_CTRL_TRWIDTH_BYTE (0 << CRCCU_TR_CTRL_TRWIDTH_POS) |
#define | CRCCU_TR_CTRL_TRWIDTH_HALFWORD (1 << CRCCU_TR_CTRL_TRWIDTH_POS) |
#define | CRCCU_TR_CTRL_TRWIDTH_POS (24) |
#define | CRCCU_TR_CTRL_TRWIDTH_WORD (2 << CRCCU_TR_CTRL_TRWIDTH_POS) |
Typedefs | |
typedef struct crccu_dscr_type | crccu_dscr_type_t |
CRCCU descriptor type. More... | |
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... | |
#define CRCCU_TR_CTRL_IEN_DISABLE (1 << CRCCU_TR_CTRL_IEN_OFFSET) |
#define CRCCU_TR_CTRL_IEN_ENABLE (0 << CRCCU_TR_CTRL_IEN_OFFSET) |
Referenced by compute_crc().
#define CRCCU_TR_CTRL_IEN_OFFSET (27) |
#define CRCCU_TR_CTRL_TRWIDTH_BYTE (0 << CRCCU_TR_CTRL_TRWIDTH_POS) |
Referenced by compute_crc().
#define CRCCU_TR_CTRL_TRWIDTH_HALFWORD (1 << CRCCU_TR_CTRL_TRWIDTH_POS) |
#define CRCCU_TR_CTRL_TRWIDTH_POS (24) |
#define CRCCU_TR_CTRL_TRWIDTH_WORD (2 << CRCCU_TR_CTRL_TRWIDTH_POS) |
typedef struct crccu_dscr_type crccu_dscr_type_t |
CRCCU descriptor type.