CAN_SETTINGS Structure¶
This structure defines settings for CAN networks on neoVI and ValueCAN devices.
C/C++ Declare¶
struct __declspec (align(2))
{
uint8_t Mode;
uint8_t SetBaudrate;
uint8_t Baudrate;
uint8_t transceiver_mode;
uint8_t TqSeg1;
uint8_t TqSeg2;
uint8_t TqProp;
uint8_t TqSync;
uint16_t BRP;
uint8_t auto_baud;
uint8_t innerFrameDelay25us;
}CAN_SETTINGS;
Visual Basic .NET Declare¶
<StructLayout(LayoutKind.Sequential, Pack:=2)> Public Structure CAN_SETTINGS
Dim Mode As Byte
Dim SetBaudrate As Byte
Dim Baudrate As Byte
Dim transceiver_mode As Byte
Dim TqSeg1 As Byte
Dim TqSeg2 As Byte
Dim TqProp As Byte
Dim TqSync As Byte
Dim BRP As UInt16
Dim auto_baud As Byte
Dim innerFrameDelay25us As Byte
End Structure
C# .NET Declare¶
[StructLayout(LayoutKind.Sequential,Pack=2)]
public struct CAN_SETTINGS
{
public byte Mode;
public byte SetBaudrate;
public byte Baudrate;
public byte transceiver_mode;
public byte TqSeg1;
public byte TqSeg2;
public byte TqProp;
public byte TqSync;
public UInt16 BRP;
public byte auto_baud;
public byte innerFrameDelay25us;
}
Remarks¶
Item |
Description |
||||||||||||||||||||||||
Mode |
Sets the mode of the CAN controller Normal = 0 Disabled = 1 (neoVI FIRE/RED and ValueCAN3 only) Listen only = 3 Listen All = 7 (neoVI FIRE/RED and ValueCAN3 only) |
||||||||||||||||||||||||
SetBaudrate |
The bit rate of the CAN Channel can be selected in one of two ways. This sets the method to calculate the baud rate Auto (Uses Bitrate parameter) = 0 Use TQ times = 1 |
||||||||||||||||||||||||
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 = 0
|
||||||||||||||||||||||||
transceiver_mode |
Not used, set to 0 |
||||||||||||||||||||||||
TqSeg1 |
Phase segment 1 |
||||||||||||||||||||||||
TqSeg2 |
Phase segment 2 |
||||||||||||||||||||||||
TqProp |
Propagation delay |
||||||||||||||||||||||||
TqSync |
Syncro jump Width |
||||||||||||||||||||||||
BRP |
Baud Rate Prescaler |
||||||||||||||||||||||||
auto_baud |
Enabled Auto bitrate feature. (neoVI FIRE/RED and ValueCAN3) Enable = 1 Disable = 0 |
||||||||||||||||||||||||
innerFrameDelay25us |
Adjusts min time between frames (neoVI FIRE/RED and ValueCAN3 only) |