Specifications

Constructing and Extracting CAN Data Frames
4-41
We assume that a node on the CAN network needs to receive a CAN message
with identifier 156 having the following data frame content. The data frame
has to be 6 bytes long.
The bit pattern cell array, which bit-packs the data frame according to the
above specification, can look as follows.
{ [0:7] , [15:-1:8] , [16:23] , [25] , [-1,-1,26:31] , [32:47] }
And the Simulink model simulating the needed behavior would be as show
below.
Byte 0 Function class of type uint8
Byte 1 Function subclass of type uint8 with reversed
bit order
Byte 2 Reserved, all bits have to be 1
Byte 3 Bit 0 has to be 0, Bit 1 has to be a
boolean (flag), bits 2 to 7 have to be
bit 2 to 7 of an incoming int8 value
(control)
Byte 4 and 5 Value of type int16