 
SWCAN_SETTINGS Structure
This structure defines settings for
SWCAN networks on neoVI Fire devices.
C/C++ Declare
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;
Visual Basic .NET Declare
<StructLayout(LayoutKind.Sequential, Pack:=2)>
Public
Structure 
SWCAN_SETTINGS
    Dim 
Mode As 
Byte
    Dim 
SetBaudrate
As 
Byte
    Dim 
Baudrate
As 
Byte
    Dim 
NetworkType
As 
Byte
    Dim 
TqSeg1
As 
Byte
    Dim 
TqSeg2
As 
Byte
    Dim 
TqProp
As 
Byte
    Dim 
TqSync
As 
Byte
    Dim 
BRP
As  
Int16
    Dim 
high_speed_auto_switch 
As  
Int16
    Dim 
auto_baud As 
Int16
End 
Structure
C# Declares
[StructLayout(LayoutKind.Sequential,Pack=2)]
public 
struct SWCAN_SETTINGS
{
    public
byte Mode;
    public
byte SetBaudrate;
    public
byte Baudrate;
    public
byte NetworkType;
    public
byte TqSeg1;
    public
byte TqSeg2;
    public
byte TqProp;
    public
byte TqSync;
    public 
UInt16 BRP;
    public 
UInt16 high_speed_auto_switch;
    public 
UInt16 auto_baud;
}
Structure Elements
| Item | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| icscm_uint8 Mode | CAN controller mode when
      the neoVI device goes online or runs a CoreMini script. Default value = 0 
 | |||||||||||||||||||||
| 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) Default value = 0 
 | |||||||||||||||||||||
| 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 
 | |||||||||||||||||||||
| 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). | |||||||||||||||||||||
| icscm_uint8 TqSeg1 | Phase 1 segment | |||||||||||||||||||||
| icscm_uint8 TqSeg2 | Phase 2 segment | |||||||||||||||||||||
| icscm_uint8 TqProp | Propagation delay | |||||||||||||||||||||
| icscm_uint8 TqSync | Syncro jump width | |||||||||||||||||||||
| icscm_uint16 BRP | ||||||||||||||||||||||
| icscm_uint16 high_speed_auto_switch | 
 | |||||||||||||||||||||
| icscm_uint16 auto_baud | Enables
      the auto bitrate feature. 1 = enable, 0 = disable. Default value = 0 | 
| IntrepidCS API Documentation - (C) Copyright 2000-2022 Intrepid Control Systems, Inc. (www.intrepidcs.com) | 
Last Updated : Wednesday, November 18, 2020