MSP430 DriverLib for MSP430FR5xx_6xx Devices  2.70.00.08
 All Data Structures Files Functions Variables Enumerations Modules Pages
crc32

Functions

void CRC32_setSeed (uint32_t seed, uint8_t crcMode)
 Sets the seed for the CRC32. More...
 
void CRC32_set8BitData (uint8_t dataIn, uint8_t crcMode)
 Sets the 8 bit data to add into the CRC32 module to generate a new signature. More...
 
void CRC32_set16BitData (uint16_t dataIn, uint8_t crcMode)
 Sets the 16 bit data to add into the CRC32 module to generate a new signature. More...
 
void CRC32_set32BitData (uint32_t dataIn)
 Sets the 32 bit data to add into the CRC32 module to generate a new signature. More...
 
void CRC32_set8BitDataReversed (uint8_t dataIn, uint8_t crcMode)
 Translates the data by reversing the bits in each 8 bit data and then sets this data to add into the CRC32 module to generate a new signature. More...
 
void CRC32_set16BitDataReversed (uint16_t dataIn, uint8_t crcMode)
 Translates the data by reversing the bits in each 16 bit data and then sets this data to add into the CRC32 module to generate a new signature. More...
 
void CRC32_set32BitDataReversed (uint32_t dataIn)
 Translates the data by reversing the bits in each 32 bit data and then sets this data to add into the CRC32 module to generate a new signature. More...
 
uint32_t CRC32_getResult (uint8_t crcMode)
 Returns the value of the signature result. More...
 
uint32_t CRC32_getResultReversed (uint8_t crcMode)
 Returns the bit-wise reversed format of the 32 bit signature result. More...
 

Detailed Description

Function Documentation

uint32_t CRC32_getResult ( uint8_t  crcMode)

Returns the value of the signature result.

This function returns the value of the signature result generated by the CRC32. Bit 0 is treated as LSB.

Parameters
crcModeselects the mode of operation for the CRC32 Valid values are:
  • CRC32_MODE - 32 Bit Mode
  • CRC16_MODE - 16 Bit Mode
Returns
The signature result
uint32_t CRC32_getResultReversed ( uint8_t  crcMode)

Returns the bit-wise reversed format of the 32 bit signature result.

This function returns the bit-wise reversed format of the signature result. Bit 0 is treated as MSB.

Parameters
crcModeselects the mode of operation for the CRC32 Valid values are:
  • CRC32_MODE - 32 Bit Mode
  • CRC16_MODE - 16 Bit Mode
Returns
The bit-wise reversed format of the signature result
void CRC32_set16BitData ( uint16_t  dataIn,
uint8_t  crcMode 
)

Sets the 16 bit data to add into the CRC32 module to generate a new signature.

This function sets the given data into the CRC32 module to generate the new signature from the current signature and new data. Bit 0 is treated as the LSB.

Parameters
dataInis the data to be added, through the CRC32 module, to the signature.
crcModeselects the mode of operation for the CRC32 Valid values are:
  • CRC32_MODE - 32 Bit Mode
  • CRC16_MODE - 16 Bit Mode
Returns
None
void CRC32_set16BitDataReversed ( uint16_t  dataIn,
uint8_t  crcMode 
)

Translates the data by reversing the bits in each 16 bit data and then sets this data to add into the CRC32 module to generate a new signature.

This function first reverses the bits in each byte of the data and then generates the new signature from the current signature and new translated data. Bit 0 is treated as the MSB.

Parameters
dataInis the data to be added, through the CRC32 module, to the signature.
crcModeselects the mode of operation for the CRC32 Valid values are:
  • CRC32_MODE - 32 Bit Mode
  • CRC16_MODE - 16 Bit Mode
Returns
None
void CRC32_set32BitData ( uint32_t  dataIn)

Sets the 32 bit data to add into the CRC32 module to generate a new signature.

This function sets the given data into the CRC32 module to generate the new signature from the current signature and new data. Bit 0 is treated as the LSB.

Parameters
dataInis the data to be added, through the CRC32 module, to the signature.
Returns
None
void CRC32_set32BitDataReversed ( uint32_t  dataIn)

Translates the data by reversing the bits in each 32 bit data and then sets this data to add into the CRC32 module to generate a new signature.

This function first reverses the bits in each byte of the data and then generates the new signature from the current signature and new translated data. Bit 0 is treated as the MSB.

Parameters
dataInis the data to be added, through the CRC32 module, to the signature.
Returns
None
void CRC32_set8BitData ( uint8_t  dataIn,
uint8_t  crcMode 
)

Sets the 8 bit data to add into the CRC32 module to generate a new signature.

This function sets the given data into the CRC32 module to generate the new signature from the current signature and new data. Bit 0 is treated as the LSB.

Parameters
dataInis the data to be added, through the CRC32 module, to the signature.
crcModeselects the mode of operation for the CRC32 Valid values are:
  • CRC32_MODE - 32 Bit Mode
  • CRC16_MODE - 16 Bit Mode
Returns
None
void CRC32_set8BitDataReversed ( uint8_t  dataIn,
uint8_t  crcMode 
)

Translates the data by reversing the bits in each 8 bit data and then sets this data to add into the CRC32 module to generate a new signature.

This function first reverses the bits in each byte of the data and then generates the new signature from the current signature and new translated data. Bit 0 is treated as the MSB.

Parameters
dataInis the data to be added, through the CRC32 module, to the signature.
crcModeselects the mode of operation for the CRC32 Valid values are:
  • CRC32_MODE - 32 Bit Mode
  • CRC16_MODE - 16 Bit Mode
Returns
None
void CRC32_setSeed ( uint32_t  seed,
uint8_t  crcMode 
)

Sets the seed for the CRC32.

This function sets the seed for the CRC32 to begin generating a signature with the given seed and all passed data. Using this function resets the CRC32 signature.

Parameters
seedis the seed for the CRC32 to start generating a signature from.
Modified bits are CRC32INIRESL0 of CRC32INIRESL0 register.
crcModeselects the mode of operation for the CRC32 Valid values are:
  • CRC32_MODE - 32 Bit Mode
  • CRC16_MODE - 16 Bit Mode
Returns
None

Copyright 2016, Texas Instruments Incorporated