2. Select CAN device role
The CAN device role shows whether the telegram is data that the CAN device expects to receive or whether it is data it can send. In the case of our telegram Level_in, this is data the CAN device wants to receive (hence the “IN”), so we set can device role to “receiving”.
3. Set mapping
Now, we need, bit by bit, to indicate the transfer of bits from the CAN-telegram into proper COPP–variables. This happens in two steps.
First, we transfer the bit-stream into a record structure of uints (CAN_level_in_demo_rec)
Next, we convert the data from the uint record into a record structure of proper COPP variables (COPP_level_in_demo_rec)
CAN_level_in_demo_rec
The CAN telegram definition was: