AN2633 Freescale Semiconductor / Motorola, AN2633 Datasheet - Page 19

no-image

AN2633

Manufacturer Part Number
AN2633
Description
LIN Drivers for SLIC Module on the MC68HC908QL4
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
API
MOTOROLA
LIN_MSG_NOCHANGE
LIN_INVALID_MODE
LIN_MSG_OVERRUN
LIN_MSG_UPDATED
LIN_MSG_NODATA
LIN_ INVALID_ID
LIN_MSG_OK
LIN_NO_ID
Constant
LIN_OK
Constant
The API that comes with the driver makes it easier for the application developer
to interface to the driver, as it is not necessary to know anything about the
communications protocol behind how messages are sent and received. Most
of this is handled by the SLIC module autonomously, so there is not much
behind the API, but it does provide an abstraction layer between low-level
driver and application. This section describes an overview of the functions and
constants used in the API.
The API includes status constants that describe:
LIN Drivers for SLIC Module on the MC68HC908QL4
Freescale Semiconductor, Inc.
For More Information On This Product,
Status of the service calls (such as sending or receiving)
Status of individual messages (such as empty, updated, or overrun)
Table 3. LIN Message Status Constants
Service call succeeded without any error
The ID requested is defined for the node, but for the opposite
The message ID requested is not defined for this node
The service couldn’t be called in the current driver state
Table 4. LIN Message Status Flow
The data buffer for this message is empty, i.e,. data has not
Message data OK, i.e. not overrun and not empty
The message data has not changed since last read/written
Message data has been updated
The message data has not been read and was overwritten
direction (sending/receiving)
Go to: www.freescale.com
been initialized or received yet
CodeWarrior Project — C Source Code SLIC Driver with API
Description
Description
AN2633/D
Value
Value
0x01u
0x10u
0x02u
0x20u
0x04u
0x7F
0x00
0x80
0x16
19

Related parts for AN2633