AN2633 Freescale Semiconductor / Motorola, AN2633 Datasheet - Page 20

no-image

AN2633

Manufacturer Part Number
AN2633
Description
LIN Drivers for SLIC Module on the MC68HC908QL4
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2633/D
LIN Message Status
Flow
API Functions
LIN_Init()
20
The message status is stored in the table called LinMsgStatus[]. When the LIN
driver is initialized all messages will get the status LIN_MSG_NODATA.
Message status will change when the message is being sent, received, or
updated.
Table 5
message is received at a node.
Table 6
sent from a node.
This function initializes the LIN driver and makes the driver ready to detect LIN
communication. Initialization of the driver includes:
LIN_Init() must be called before any other LIN API function is called. It takes no
parameters and returns nothing.
Usage example:
LIN_MSG_NODATA
LIN_MSG_OK
LIN_MSG_NOCHANGE
LIN_MSG_UPDATED
LIN_MSG_OVERRUN
LIN_MSG_UPDATED
LIN_MSG_OVERRUN
LIN_MSG_OK
LIN_MSG_NOCHANGE
LIN_MSG_NODATA
LIN Drivers for SLIC Module on the MC68HC908QL4
Freescale Semiconductor, Inc.
For More Information On This Product,
Initializing the SLIC module
Clearing error flags
Clearing the sleep flag
Initializing the message buffer status
demonstrates the change of status after PutMsg() is called or a
demonstrates the change of status after GetMsg() is called or data is
Previous State
Previous State
Go to: www.freescale.com
Table 5. Status Change after PutMsg() is Called
Table 6. Status Change after GetMsg() is Called
LIN_Init();
LIN_MSG_OK
LIN_MSG_NOCHANGE
LIN_MSG_NODATA
LIN_MSG_UPDATED
LIN_MSG_OVERRUN
Next State
Next State
MOTOROLA

Related parts for AN2633