Copyright IXXAT Automation GmbH
UCI Programming Manual FlexRay, V1.13
External interfaces
24
5.1.4.3
Init
Initialization of the FlexRay controller with the specified configuration.
initia-
lizes and empties the receive and transmit FIFOs. See Fig. 2-1
Prototype:
virtual HRESULT __stdcall Init( const PCHAR pszConfigFile,
WORD wInitMode );
Parameters:
pszConfigFile
IN Pointer to a string which contains the path and filename of
the configuration file. Momentarily only the INI File format
is supported. Please note that the INI File format for
MFR4200, MFR4300 and MFR4310 communications con-
trollers are different and the correct INI File has to be
committed. The MFR4310 communication controller also
supports the MFR4300 INI File for backward compatibility.
wInitMode
IN Flag field with additional initialization information.
UCI_FLXINIT-
MODE_TIMES-
TAMP_TYPE
bit 0..1
0x0003
Type of the timestamp that the UCI should provide. The
mode can be one of the following:
•
UCI_FLXTIMESTAMP_DISABLE:
No timestamp is provided
•
UCI_FLXTIMESTAMP_CYCLE:
Every message of one cycle has the same timestamp
as the status message for the actual cycle. This mode
is useful for slower PCs or if no exact timestamp is
needed.
•
UCI_FLXTIMESTAMP_MESSAGE:
The timestamp of each valid message is calculated
individually according to the time of the appropriate
status message. Note that the timestamp of invalid
messages cannot be calculated. All invalid messages
of one cycle will have the same timestamp as the
status message. You will receive all invalid messages
directly after the status message and before any va-
lid message. Therefore you need a powerful PC.
Содержание FlexRay CCM
Страница 6: ......