16 #ifdef __MSP430_HAS_CRC__
21 void CRC_setSeed (uint16_t baseAddress,
24 HWREG16(baseAddress + OFS_CRCINIRES) = seed;
27 void CRC_set16BitData (uint16_t baseAddress,
30 HWREG16(baseAddress + OFS_CRCDI) = dataIn;
33 void CRC_set8BitData (uint16_t baseAddress,
36 HWREG8(baseAddress + OFS_CRCDI_L) = dataIn;
39 void CRC_set16BitDataReversed (uint16_t baseAddress,
42 HWREG16(baseAddress + OFS_CRCDIRB) = dataIn;
45 void CRC_set8BitDataReversed (uint16_t baseAddress,
48 HWREG8(baseAddress + OFS_CRCDIRB_L) = dataIn;
51 uint16_t CRC_getData (uint16_t baseAddress)
53 return (
HWREG16(baseAddress + OFS_CRCDI) );
56 uint16_t CRC_getResult (uint16_t baseAddress)
58 return (
HWREG16(baseAddress + OFS_CRCINIRES) );
61 uint16_t CRC_getResultBitsReversed (uint16_t baseAddress)
63 return (
HWREG16(baseAddress + OFS_CRCRESR) );