AN2103 Freescale Semiconductor / Motorola, AN2103 Datasheet - Page 34

no-image

AN2103

Manufacturer Part Number
AN2103
Description
Local Interconnect Network (LIN) Demonstration
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
34
Application Note
4.3.1 Slave Code
Main Function
Freescale Semiconductor, Inc.
The slave code’s main function is very similar to the master’s in that
it performs some initialization before entering an infinite loop. During
an iteration of the loop, the code updates the status message buffer
by writing the HEX switch settings to the NodeX_Read message
buffer using the LIN_PUTMsg() service and checks to see if a new
received message has been detected. If a new message has been
detected, the MsgHandlerTable is called and the appropriate handler
function is executed. Several housekeeping tasks are also
performed in the main loop, such as control of timeouts etc. Once the
iteration is complete, the code jumps back to the start of the loop and
performs the tasks again.
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA
AN2103

Related parts for AN2103