EE445M RTOS
Taken at the University of Texas Spring 2015
crc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CRC_CFG_INIT_SEED   0x00000000
 
#define CRC_CFG_INIT_0   0x00004000
 
#define CRC_CFG_INIT_1   0x00006000
 
#define CRC_CFG_SIZE_8BIT   0x00001000
 
#define CRC_CFG_SIZE_32BIT   0x00000000
 
#define CRC_CFG_RESINV   0x00000200
 
#define CRC_CFG_OBR   0x00000100
 
#define CRC_CFG_IBR   0x00000080
 
#define CRC_CFG_ENDIAN_SBHW   0x00000000
 
#define CRC_CFG_ENDIAN_SHW   0x00000010
 
#define CRC_CFG_TYPE_P8005   0x00000000
 
#define CRC_CFG_TYPE_P1021   0x00000001
 
#define CRC_CFG_TYPE_P4C11DB7   0x00000002
 
#define CRC_CFG_TYPE_P1EDC6F41   0x00000003
 
#define CRC_CFG_TYPE_TCPCHKSUM   0x00000008
 

Functions

void CRCConfigSet (uint32_t ui32Base, uint32_t ui32CRCConfig)
 
uint32_t CRCDataProcess (uint32_t ui32Base, uint32_t *pui32DataIn, uint32_t ui32DataLength, bool bPPResult)
 
void CRCDataWrite (uint32_t ui32Base, uint32_t ui32Data)
 
uint32_t CRCResultRead (uint32_t ui32Base, bool bPPResult)
 
void CRCSeedSet (uint32_t ui32Base, uint32_t ui32Seed)
 

Macro Definition Documentation

#define CRC_CFG_ENDIAN_SBHW   0x00000000

Definition at line 68 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_ENDIAN_SHW   0x00000010

Definition at line 69 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_IBR   0x00000080

Definition at line 67 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_INIT_0   0x00004000

Definition at line 61 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_INIT_1   0x00006000

Definition at line 62 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_INIT_SEED   0x00000000

Definition at line 60 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_OBR   0x00000100

Definition at line 66 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_RESINV   0x00000200

Definition at line 65 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_SIZE_32BIT   0x00000000

Definition at line 64 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_SIZE_8BIT   0x00001000

Definition at line 63 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_TYPE_P1021   0x00000001

Definition at line 71 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_TYPE_P1EDC6F41   0x00000003

Definition at line 73 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_TYPE_P4C11DB7   0x00000002

Definition at line 72 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_TYPE_P8005   0x00000000

Definition at line 70 of file crc.h.

Referenced by CRCConfigSet().

#define CRC_CFG_TYPE_TCPCHKSUM   0x00000008

Definition at line 74 of file crc.h.

Referenced by CRCConfigSet().