I am using the ADS7138, for me is unclear how to use the CRC module.
As far as it is written in the documentation the CRC have to be appended to every byte read or write.
So when I configured the ADS7138 for the CRC mode I have to transmitt a read operation as following:
Host -> 7-Bit_Addr, R/W; Opcode; CRC; Addr; CRC;
Device -> Data; CRC; Data; CRC; .... Data; CRC;
The question is: Is Opcode and Addr also checked with a CRC? Or only the data bytes have its CRC?
How does it work for a write operation?
Host -> 7-Bit_Addr, R/W; Opcode; CRC; Addr; CRC; Data; CRC; Data; CRC; .... Data; CRC;