AN2103 Freescale Semiconductor / Motorola, AN2103 Datasheet - Page 55

no-image

AN2103

Manufacturer Part Number
AN2103
Description
Local Interconnect Network (LIN) Demonstration
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2103
MOTOROLA
/************************* typedefs ******************************************/
typedef struct SlaveNodeMsgStruct
typedef struct SlaveMsgBufferStruct
typedef union
typedef enum
{
} DemoModeType_t;
enumtMC33388
/************************* #Defines ******************************************/
/* Timmer period Control */
#define NODE_CONNECTED
#define NO_NODE
#define CBT0_125K
#define CBT1_125K
#define MSCAN_TX0
{
} SlaveNodeMsgType;
{
} SlaveMsgBufferType;
{
struct
}tFLAG;
DEFAULT,
BROADCAST,
IDENT,
SLEEPMODE
{
SLEEP,
SLEEP_RQ,
RX_ONLY,
NORMAL
};
tU08
tU08
tU08
tU08
tU08
{
tU08 msgrxd:1;
tU08 loopcontrol :1;
tU08 updowncontrol :1;
tU08 canmode :1;
tU08 linmsgtimeout :1;
tU08 starttimeout :1;
tU08 :2;
}bit;
WriteMsg;
ReadMsg;
Byte0;
Byte1;
byte;
0x80
0x00
0xC0
0xD8
0x01
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
//target connection established
//Loop control flag
//Broadcast message up down flag 0=Up, 1=Down
//Flag indicates mode.
//LIN timeout.
//LIN timeout.
// not used
//based on a 4MHz xtal, 3 sampling points, SJW = 4
Timeout = 1, OK = 0
Timeout = 1, OK = 0
Standalone = 1 CAN = 0
Master Code – MASTER08.H
Code Listings
55

Related parts for AN2103