CANFD_SETTINGS Structure¶
This structure defines settings for CANFD networks on supporting neoVI and ValueCAN devices.
C/C++ Declare¶
typedef struct __declspec (align(2))
unsigned char FDMode;
unsigned char FDBaudrate;
unsigned char FDTqSeg1;
unsigned char FDTqSeg2;
unsigned char FDTqProp;
unsigned char FDTqSync;
unsigned short FDBRP;
unsigned char FDTDC;
unsigned char reserved;
}CANFD_SETTINGS;
Visual Basic .NET Declare¶
<StructLayout(LayoutKind.Sequential, Pack:=2)> Public Structure CANFD_SETTINGS
Dim FDMode As Byte
Dim FDBaudrate As Byte
Dim FDTqSeg1 As Byte
Dim FDTqSeg2 As Byte
Dim FDTqProp As Byte
Dim FDTqSync As Byte
Dim FDBRP As UInt16
Dim FDTDC As Byte
Dim reserved As Byte
End Structure
C# .NET Declare¶
[StructLayout(LayoutKind.Sequential,Pack=2)]
public struct CANFD_SETTINGS
{
public byte FDMode;
public byte FDBaudrate;
public byte FDTqSeg1;
public byte FDTqSeg2;
public byte FDTqProp;
public byte FDTqSync;
public UInt16 FDBRP;
public byte FDTDC;
public byte reserved;
}
Remarks¶
Item |
Description |
||||||||||||||||||||||||||||||||||||||
FDMode |
Sets the CANFD Mode in the device. Table below lists the options.
|
||||||||||||||||||||||||||||||||||||||
FDBaudrate |
Bit rate to use. The value is enumerated from a commonly used list of rates. The table below lists the rates
|
||||||||||||||||||||||||||||||||||||||
FDTqSeg1 |
Phase segment 1 value |
||||||||||||||||||||||||||||||||||||||
FDTqSeg2 |
Phase segment 2 value |
||||||||||||||||||||||||||||||||||||||
FDTqProp |
Propagation delay |
||||||||||||||||||||||||||||||||||||||
FDTqSync |
Syncro jump width |
||||||||||||||||||||||||||||||||||||||
FDBRP |
Baud Rate Presale |
||||||||||||||||||||||||||||||||||||||
FDTDC |
Transceiver delay compensation |
||||||||||||||||||||||||||||||||||||||
reserved |
Reserved, set to 0 |