/* Computes the XOR checksum for a data buffer.  */
uint8_t AD717X_ComputeXOR8(uint8_t *pBuf, uint8_t bufSize)
/* Computes the XOR checksum for a data buffer.  */
uint8_t AD717X_ComputeXOR8(uint8_t *pBuf, uint8_t bufSize)
{
	uint8_t xor = 0;
	while(bufSize) {
		xor ^= *pBuf;
		pBuf++;
		bufSize--;
	}
	return xor;
}