LIN_SETTINGS Structure

This structure defines settings for LIN networks on supported hardware devices.

typedef struct __declspec (align(2))
 {
  unsigned int Baudrate;
  unsigned short spbrg;
  unsigned char brgh;
  unsigned char NumBitsDelay;
  unsigned char MasterResistor;
  unsigned char Mode;
 }LIN_SETTINGS;

Remarks

Item
Description

Baudrate

Baudrate to be set

spbrg

Only use with neoVI FIRE. 40Mhz/Baudrate/16-1 = spbrg

brgh

Set to 0

NumBitsDelay

Delay to set between Header and Slave data. Default is 0

MasterResistor

Enable for Master Resistor Off=0: On=1:

Mode

Sets the LIN Mode Sleep=0: Slow=1: Normal=2: Fast=2:

Last updated