due_can
due_can copied to clipboard
How to read and write individual bits to the canbus?
Hey all - Does anyone know the proper syntax to read and then send data to individual bits of an address id byte ?
Thank you!
Let's say you have a "CAN_FRAME frame;" variable.
Then, the syntax to get and set bits is frame.data.bit[34] = 1; where the 34 can be 0-63 and references each bit in the message.