
FlexRay Module (FLEXRAYV2)
MFR4300 Data Sheet, Rev. 1
152
Freescale Semiconductor
The application configures the size of the two segments of individual message buffers by writing the
message buffer number of the last message buffer in the first segment into the LAST_MB_SEG1 field in
the
Message Buffer Segment Size and Utilization Register (MBSSUTR)
The application configures the length of the message buffer data fields for both of the message buffer
segments by writing to the MBSEG2DS and MBSEG1DS fields in the
Message Buffer Data Size Register
(MBDSR)
.
Depending on the current receive functionality of the FlexRay module, the application must configure the
receive shadow buffers. For each segment and for each channel with at least one individual receive
message buffer assigned, the application must configure the related receive shadow buffer using the
Receive Shadow Buffer Index Register (RSBIR)
.
3.4.6.1.2
Specific Configuration Data
The second part of the message buffer configuration data is specific for each message buffer.
These data can be changed only when either
the protocol is in the
POC:config
state or
the message buffer is disabled, i.e. MBCCSRn.EDS = 0
The individual message buffer type is defined by the MTD and MBT bits in the
Message Buffer
Configuration, Control, Status Registers (MBCCSRn)
as given in
Table 3-89
.
The message buffer specific configuration data are
1. MCM, MBT, MTD bits in
Message Buffer Configuration, Control, Status Registers (MBCCSRn)
2. all fields and bits in
Message Buffer Cycle Counter Filter Registers (MBCCFRn)
3. all fields and bits in
Message Buffer Frame ID Registers (MBFIDRn)
4. all fields and bits in
Message Buffer Index Registers (MBIDXRn)
The meaning of the specific configuration data depends on the message buffer type, as given in the detailed
message buffer type descriptions
Section 3.4.6.2, “Single Transmit Message Buffers
”,
Section 3.4.6.3,
“Receive Message Buffers
”, and
Section 3.4.6.4, “Double Transmit Message Buffer
”.
3.4.6.2
Single Transmit Message Buffers
The section provides a detailed description of the functionality of single buffered transmit message buffers.
A single transmit message buffer is used by the application to provide message data to the FlexRay module
that will be transmitted over the FlexRay Bus. The FlexRay module uses the transmit message buffers to
Table 3-89. Individual Message Buffer Types
MBCCSRn.MTD
MBCCSRn.MBT
Individual Message Buffer Description
0
0
1
1
0
1
0
1
Receive Message Buffer
Reserved
Single Transmit Message Buffer
Double Transmit Message Buffer