AnsweredAssumed Answered

CAN Outgoing Data / Different Adress from ECU

Question asked by MPC on Mar 11, 2015
Latest reply on Mar 11, 2015 by peacock.jack.003
I have a question regarding to adress CAN.
For example I have defined the following lines like:

NCAN_Outgoing.Data[0] = 0x02;   // this is for the destination ID
NCAN_Outgoing.Data[1] = 0x09;
NCAN_Outgoing.Data[2] = 0x06:
Assuming that I have two ECUs (e.g. 0x02 & 0x03) how is it possible to give STM32 the possibility to look up which adress should be used?
Maybe an idea: Creating a loop when the code check's if the destination ID matches up?
Thanks for helping!