SWCAN_SETTINGS Structure

This structure defines settings for SWCAN networks on neoVI Fire devices.

typedef VS_MODIFIER struct
{
    icscm_uint8 Mode;
    icscm_uint8 SetBaudrate;
    icscm_uint8 Baudrate;
    icscm_uint8 NetworkType;
    icscm_uint8 TqSeg1;
    icscm_uint8 TqSeg2;
    icscm_uint8 TqProp;
    icscm_uint8 TqSync;
    icscm_uint16 BRP;
    icscm_uint16 high_speed_auto_switch;
    icscm_uint16 auto_baud;
} SWCAN_SETTINGS;

Remarks

ItemDescription

CAN controller mode when the neoVI device goes online or runs a CoreMini script.

Default value = 0

NORMAL

0

DISABLED

1

LISTEN ONLY

3

LISTEN ALL

7

NORMAL

0

DISABLED

1

LISTEN ONLY

3

LISTEN ALL

7

icscm_uint8 SetBaudrate

The bit rate of a CAN channel can be selected one of two ways. It can either be selected from a list of common bit rates (SetBaudrate=1) or the user can specify the CAN timing parameters (SetBaudrate=0)

AUTO (Select from bitrate list using Baudrate parameter)

0

USE_TQ (Use time quanta parameters

1

AUTO (Select from bitrate list using Baudrate parameter)

0

USE_TQ (Use time quanta parameters

1

icscm_uint8 Baudrate

The bit rate of a CAN channel can be selected from a list of common bit rates Write the correct enumeration for the desired bit rate and ensure that SetBaudrate is 1(auto)

Default value = 8

Note: This parameter is only applicable if SetBaudrate = 1 20000

0

33333

1

50000

2

62500

3

83333

4

100000

5

125000

6

250000

7

500000

8

800000

9

1000000

10

0

33333

1

50000

2

62500

3

83333

4

100000

5

125000

6

250000

7

500000

8

800000

9

1000000

10

icscm_uint8 NetworkType

Currently Not used. Will be supoprted in neoVI Yellow to software select which CAN transceiver to use (DW vs SW vs LSFT).

Phase 1 segment

Phase 2 segment

Propagation delay

Syncro jump width

icscm_uint16 high_speed_auto_switch

DISABLED

0

NO_RESISTOR

1

WITH_RESISTOR

2

DISABLED

0

NO_RESISTOR

1

WITH_RESISTOR

2

icscm_uint16 auto_baud

Enables the auto bitrate feature. 1 = enable, 0 = disable.

Default value = 0

Last updated