Hi,
How can I do sequential CD Register reading when using C2000 Position Manager BISS-C Library?
As in the example above, I have to create the CDM variable sequentially. Then the cdm variable is getting more than 32 bits.
As can be seen here, the CDM variable is defined as uint32_t as 32 bits. And the bit limit for other dependent variables is not enough.
I can access 8 bits of data correctly. But in order to read other variables such as rotational speed in RPM, I need 45 bits as below.
− // cdm = ST (1) + CTS (1) + ID (3) + Addr (7) CRC (4) + R (1) + W (1) + S (1) + TxData (8) + TxDataCRC ( 4) + STOP (1) + TxData (8) + TxDataCRC (4) + STOP (1)
How can I access data larger than 8bit as in the last picture?