csi_crc.h File Reference
CRC calculation for Common Serial Interface (CSI) protocol. More...
Include dependency graph for csi_crc.h:
This graph shows which files directly or indirectly include this file:
Functions | |
CSI_API uint16_t | CsiCrcCalc (const uint16_t *pDataArray, uint16_t NumberOfWords) |
Calculate CRC-field for CSI protocol. More... | |
CSI_API uint16_t | CsiCrcCalcIncremental (const uint16_t *pWordArray, uint16_t NumberOfWords, uint16_t CRC) |
Calculate CRC-field for CSI protocol. More... | |
Detailed Description
CRC calculation for Common Serial Interface (CSI) protocol.
- Date
- 2009/08/27
Function Documentation
CSI_API uint16_t CsiCrcCalc | ( | const uint16_t * | pDataArray, |
uint16_t | NumberOfWords | ||
) |
Calculate CRC-field for CSI protocol.
- Parameters
-
[in] pDataArray Points to array of data words to calculate checksum [in] NumberOfWords The number of words in pDataArray
- Returns
- CRC checksum for CRC field
uint16_t CsiCrcCalcIncremental(const uint16_t *pWordArray, uint16_t NumberOfWords, uint16_t CRC)
Calculate CRC-field for CSI protocol.
Definition: csi_crc.c:18
Here is the call graph for this function:
CSI_API uint16_t CsiCrcCalcIncremental | ( | const uint16_t * | pWordArray, |
uint16_t | NumberOfWords, | ||
uint16_t | CRC | ||
) |
Calculate CRC-field for CSI protocol.
- Parameters
-
[in] pWordArray Points to array of data words to calculate checksum [in] NumberOfWords The number of words in pDataArray [in] CRC The current CRC sum
- Returns
- CRC checksum for CRC field
Referenced by CsiBusWriteLargeData(), and CsiCrcCalc().