Hi there,
Using the following syntax i could able to observe and monitor the CAN frame and it's Byte information.
I have build this CAN code using the S32k14x EAR SDK.
can_message_t StdTxMsg23 = {
.cs = 0U,
.id = TX_MSG_ID_23,
.data[0] = ExtRxMsg12.data[0],
.data[1] = ExtRxMsg12.data[1],
.data[2] = ExtRxMsg12.data[2],
.data[3] = ExtRxMsg12.data[3],
.data[4] = ExtRxMsg12.data[4],
.data[5] = ExtRxMsg12.data[5],
.data[6] = ExtRxMsg12.data[6],
.data[7] = ExtRxMsg12.data[7],
.length = 8U
};
But i would also like to monitor and manupulate at bit level in each of these bytes. So, can you please help me with syntax or something through which i can enable this manupulation.
Ex : CAN FRAME
ID: 0x301
Length: 8 Bytes
DATA : 0xFF 0x00 0x35 0x55 0x00 0xFF 0x89 0xCD
Byte 6 from the above frame is 0x89 when converted to binary it is 1000 1001 .
So, in this frame i want to check whether the Bit 3 is 1 or 0 in this case it is 1 and if i want to change the Bit 2 to 1 or 0. How can i do this part. Please help me how can i do this level of monitoring and manupulation.