NUC472_NUC442_BSP V3.03.005
The Board Support Package for NUC472/NUC442
Macros | Functions
crc.h File Reference

NUC472/NUC442 series CRC driver header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CRC_CCITT   0x00000000UL
 
#define CRC_8   0x40000000UL
 
#define CRC_16   0x80000000UL
 
#define CRC_32   0xC0000000UL
 
#define CRC_CHECKSUM_COM   0x08000000UL
 
#define CRC_CHECKSUM_RVS   0x02000000UL
 
#define CRC_WDATA_COM   0x04000000UL
 
#define CRC_WDATA_RVS   0x01000000UL
 
#define CRC_CPU_WDATA_8   0x00000000UL
 
#define CRC_CPU_WDATA_16   0x10000000UL
 
#define CRC_CPU_WDATA_32   0x20000000UL
 
#define CRC_SET_SEED(u32Seed)   { CRC->SEED = (u32Seed); CRC->CTL |= CRC_CTL_CRCRST_Msk; }
 Set CRC Seed Value. More...
 
#define CRC_GET_SEED()   (CRC->SEED)
 Get CRC Seed Value. More...
 
#define CRC_WRITE_DATA(u32Data)   (CRC->DAT = (u32Data))
 CRC Write Data. More...
 

Functions

void CRC_Open (uint32_t u32Mode, uint32_t u32Attribute, uint32_t u32Seed, uint32_t u32DataLen)
 CRC Open. More...
 
uint32_t CRC_GetChecksum (void)
 Get CRC Checksum. More...
 

Detailed Description

NUC472/NUC442 series CRC driver header file.

Version
V1.00
Revision
2
Date
15/12/01 9:57a
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2015 Nuvoton Technology Corp. All rights reserved.

Definition in file crc.h.