SVCAN4Settings Structure

This structure defines various settings for the ValueCAN 4-4 and 4-2EL device.

C/C++ Declare

typedef struct __declspec
{
  uint16_t perf_en;
  CAN_SETTINGS can1;
  CANFD_SETTINGS canFD1;
  CAN_SETTINGS can2;
  CANFD_SETTINGS canFD2;
  CAN_SETTINGS can3;
  CANFD_SETTINGS canFD3;
  CAN_SETTINGS can4;
  CANFD_SETTINGS canFD4;
  unsigned short network_enables;
  unsigned short network_enables_2;
  LIN_SETTINGS lin1;
  unsigned short network_enabled_on_boot;
  unsigned short iso_9141_kwp_enable_reserved;
  ISO9141_KEYWORD2000_SETTINGS iso9141_kwp_settings;
  unsigned short iso_parity;
  unsigned short iso_msg_termination_1;
  unsigned short network_enables_3;
  STextAPISettings text_api;
  ETHERNET_SETTINGS ethernet;
  unsigned int Flags;
  unsigned short pwr_man_enable;
  unsigned short pwr_man_timeout;
}
SVCAN4Settings;

Visual Basic .NET Declare

<StructLayout(LayoutKind.Sequential, Pack:=2)> Public Structure SVCAN4Settings
  Dim perf_en As UInt16
  Dim can1 As CAN_SETTINGS
  Dim canFD1 As CANFD_SETTINGS
  Dim can2 As CAN_SETTINGS
  Dim canFD2 As CANFD_SETTINGS
  Dim can3 As CAN_SETTINGS
  Dim canFD3 As CANFD_SETTINGS
  Dim can4 As CAN_SETTINGS
  Dim canFD4 As CANFD_SETTINGS
  Dim network_enables As UInt16
  Dim network_enables_2 As UInt16
  Dim lin1 As LIN_SETTINGS
  Dim network_enabled_on_boot As UInt16
  Dim iso_9141_kwp_enable_reserved As UInt16
  Dim iso9141_kwp_settings As ISO9141_KEYWORD2000_SETTINGS
  Dim iso_parity As UInt16
  Dim iso_msg_termination_1 As UInt16
  Dim network_enables_3 As UInt16
  Dim text_api As STextAPISettings
  Dim ethernet As ETHERNET_SETTINGS
  Dim Flags As UInt32
  Dim pwr_man_enable As UInt16
  Dim pwr_man_timeout As UInt16
End Structure

C# .NET Declare

[StructLayout(LayoutKind.Sequential,Pack=2)]
public struct SVCAN4Settings
{
public UInt16 perf_en;
public CAN_SETTINGS can1;
public CANFD_SETTINGS canFD1;
public CAN_SETTINGS can2;
public CANFD_SETTINGS canFD2;
public CAN_SETTINGS can3;
public CANFD_SETTINGS canFD3;
public CAN_SETTINGS can4;
public CANFD_SETTINGS canFD4;
public UInt16 network_enables;
public UInt16 network_enables_2;
public LIN_SETTINGS lin1;
public UInt16 network_enabled_on_boot;
public UInt16 iso_9141_kwp_enable_reserved;
public ISO9141_KEYWORD2000_SETTINGS iso9141_kwp_settings;
public UInt16 iso_parity;
public UInt16 iso_msg_termination_1;
public UInt16 network_enables_3;
public STextAPISettings text_api;
public ETHERNET_SETTINGS ethernet;
public UInt32 Flags;
public UInt16 pwr_man_enable;
public UInt16 pwr_man_timeout;
}

Remarks

Item

Description

perf_en

Performance test. Default value = 0

can1

See CAN_SETTINGS structure

canFD1

See CANFD_SETTINGS structure

can2

See CAN_SETTINGS structure

canFD2

See CANFD_SETTINGS structure

can3

See CAN_SETTINGS structure

canFD3

See CANFD_SETTINGS structure

can4

See CAN_SETTINGS structure

canFD4

See CANFD_SETTINGS structure

network_enables

Bitfield containing the software license enables. Depending on the hardware license purchased the customer may have to conditionally select which hardware channels to enable. For example the neoVI Red license allows the user to enable any 2 Dual Wire CAN channels and any 2 LIN channels. To enable a specific network its corresponding bit must be set (1). In order to transmit or receive on a network it must be enabled.

HSCAN : 0

MSCAN : 1

LIN1 : 2

LIN2 : 3

VIRTUAL : 4

HSCAN2 : 5

LSFTCAN1 : 6

SWCAN1 : 7

HSCAN3 : 8

GMCGI : 9

J1850 : 10

LIN3 : 11

LIN4 : 12

J1708 : 13

HSCAN4 : 14

HSCAN5 : 15

network_enables_2

Bitfield containing the software license enables. Depending on the hardware license purchased the customer may have to conditionally select which hardware channels to enable. For example the neoVI Red license allows the user to enable any 2 Dual Wire CAN channels and any 2 LIN channels. To enable a specific network its corresponding bit must be set (1). In order to transmit or receive on a network it must be enabled.

KLINE1 : 0

KLINE2 : 1

KLINE3 : 2

KLINE4 : 3

FLEXRAY1A : 4

UART : 5

UART2 : 6

LIN5 : 7

MOST25 : 8

MOST50 : 9

FLEXRAY1B : 10

SWCAN2 : 11

ETHERNET_DAQ : 12

ETHERNET : 13

FLEXRAY2A : 14

FLEXRAY2B : 15

lin1

See LIN_SETTINGS structure

network_enabled_on_boot

Normally neoVI only initiates its comm channels when CoreMini is running or if neoVI is online with DLL/Vehicle Spy 3. Practically this means the the CAN controllers stay in Listen Only mode until the device goes online. Once online the neoVI loads the user settings. Setting this parameter to 1 will change this behavior so that the neoVI enables its controllers immediately on boot.

Default value = 0

iso_9141_kwp_enable_reserved

Reserved

iso9141_kwp_settings

See ISO9141_KEYWORD2000_SETTINGS structure

iso_parity

ISO9141 Parity setting: 0 - no parity, 1 - even, 2 - odd

iso_msg_termination_1

ISO9141 message termination setting: 0 - use inner frame time 1 - GME CIM-SCL

network_enables_3

Bitfield containing the software license enables. Depending on the hardware license purchased the customer may have to conditionally select which hardware channels to enable. For example the neoVI Red license allows the user to enable any 2 Dual Wire CAN channels and any 2 LIN channels. To enable a specific network its corresponding bit must be set (1). In order to transmit or receive on a network it must be enabled.

HSCAN6 : 0

HSCAN7 : 1

LIN6 : 2

LSFTCAN2 : 3

OP_ETH1 : 4

OP_ETH2 : 5

OP_ETH3 : 6

OP_ETH4 : 7

OP_ETH5 : 8

OP_ETH6 : 9

OP_ETH7 : 10

OP_ETH8 : 11

OP_ETH9 : 12

OP_ETH10 : 13

OP_ETH11 : 14

OP_ETH12 : 15

text_api

See STextAPISettings structure

ethernet

See ETHERNET_SETTINGS structure

Flags

Not used

pwr_man_enable

1 = enable Power Management, 0 = disable.

Default value = 0

pwr_man_timeout

Number of milliseconds of no bus activity required before neoVI enters low power mode. Note pwr_man_enable must be set for power management to be enabled.

Default value = 10000