30 #ifndef _SAM4S_CRCCU_COMPONENT_ 31 #define _SAM4S_CRCCU_COMPONENT_ 39 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 62 #define CRCCU_DSCR_DSCR_Pos 9 63 #define CRCCU_DSCR_DSCR_Msk (0x7fffffu << CRCCU_DSCR_DSCR_Pos) 64 #define CRCCU_DSCR_DSCR(value) ((CRCCU_DSCR_DSCR_Msk & ((value) << CRCCU_DSCR_DSCR_Pos))) 66 #define CRCCU_DMA_EN_DMAEN (0x1u << 0) 68 #define CRCCU_DMA_DIS_DMADIS (0x1u << 0) 70 #define CRCCU_DMA_SR_DMASR (0x1u << 0) 72 #define CRCCU_DMA_IER_DMAIER (0x1u << 0) 74 #define CRCCU_DMA_IDR_DMAIDR (0x1u << 0) 76 #define CRCCU_DMA_IMR_DMAIMR (0x1u << 0) 78 #define CRCCU_DMA_ISR_DMAISR (0x1u << 0) 80 #define CRCCU_CR_RESET (0x1u << 0) 82 #define CRCCU_MR_ENABLE (0x1u << 0) 83 #define CRCCU_MR_COMPARE (0x1u << 1) 84 #define CRCCU_MR_PTYPE_Pos 2 85 #define CRCCU_MR_PTYPE_Msk (0x3u << CRCCU_MR_PTYPE_Pos) 86 #define CRCCU_MR_PTYPE_CCITT8023 (0x0u << 2) 87 #define CRCCU_MR_PTYPE_CASTAGNOLI (0x1u << 2) 88 #define CRCCU_MR_PTYPE_CCITT16 (0x2u << 2) 89 #define CRCCU_MR_DIVIDER_Pos 4 90 #define CRCCU_MR_DIVIDER_Msk (0xfu << CRCCU_MR_DIVIDER_Pos) 91 #define CRCCU_MR_DIVIDER(value) ((CRCCU_MR_DIVIDER_Msk & ((value) << CRCCU_MR_DIVIDER_Pos))) 93 #define CRCCU_SR_CRC_Pos 0 94 #define CRCCU_SR_CRC_Msk (0xffffffffu << CRCCU_SR_CRC_Pos) 96 #define CRCCU_IER_ERRIER (0x1u << 0) 98 #define CRCCU_IDR_ERRIDR (0x1u << 0) 100 #define CRCCU_IMR_ERRIMR (0x1u << 0) 102 #define CRCCU_ISR_ERRISR (0x1u << 0) volatile uint32_t RwReg
Definition: sam3n00a.h:54
volatile uint32_t WoReg
Definition: sam3n00a.h:53
Crccu hardware registers.
Definition: component_crccu.h:41
volatile const uint32_t RoReg
Definition: sam3n00a.h:49