MAX32665 SDK Documentation  0.2
Software Development Kit Overview and API Documentation
Cyclic Redundancy Check (CRC)

Macros

#define TPU_CRC32_ETHERNET   0xEDB88320
 
#define TPU_CRC_CCITT   0x00008408
 
#define TPU_CRC16   0x0000A001
 
#define TPU_USBDATA   0x80050000
 
#define TPU_PARITY   0x00000001
 

Functions

void TPU_CRC_Reset (void)
 Reset the crypto accelerator.
 
void TPU_CRC_Shutdown (void)
 Shutdown crypto controller.
 
int TPU_CRC_Config (void)
 Configure crypto CRC operation. More...
 
int TPU_CRC (const uint8_t *src, uint32_t len, uint32_t poly, uint32_t *crc)
 Test the CRC process. More...
 
int TPU_Ham_Config (void)
 Configure crypto HAM operation. More...
 
int TPU_Ham (const uint8_t *src, uint32_t len, uint32_t *ecc)
 Test the CRC process. More...
 

Detailed Description

Function Documentation

◆ TPU_CRC_Config()

int TPU_CRC_Config ( void  )
Returns
E_SUCCESS CRC algorithm configured successfully

◆ TPU_CRC()

int TPU_CRC ( const uint8_t *  src,
uint32_t  len,
uint32_t  poly,
uint32_t *  crc 
)
Parameters
srcPointer to source message
lenSpecifies size of message in bytes
polySelects the crc polynomial
crcPointer to store crc value
Returns
E_NULL_PTR Specified pointers src; points to null
E_SUCCESS CRC process completed successfully

◆ TPU_Ham_Config()

int TPU_Ham_Config ( void  )
Returns
E_SUCCESS HAM algorithm configured successfully

◆ TPU_Ham()

int TPU_Ham ( const uint8_t *  src,
uint32_t  len,
uint32_t *  ecc 
)
Parameters
srcPointer to source message
lenSpecifies size of message in bytes
eccPointer to store ecc value
Returns
E_NULL_PTR Specified pointers src; points to null
E_SUCCESS CRC process completed successfully