# CANFD\_SETTINGS Structure

This structure defines settings for CANFD networks on supporting neoVI and ValueCAN devices.

{% tabs %}
{% tab title="C/C++ Declare" %}

```cpp
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;
```

{% endtab %}

{% tab title="Visual Basic .NET Declare" %}

```vbnet
<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
```

{% endtab %}

{% tab title="C# .NET Declare" %}

```csharp
[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;
 }
```

{% endtab %}
{% endtabs %}

**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                                                                                           |

| Rate     | Value |
| -------- | ----- |
| 20000    | 0     |
| 33333    | 1     |
| 50000    | 2     |
| 62500    | 3     |
| 83333    | 4     |
| 100000   | 5     |
| 125000   | 6     |
| 250000   | 7     |
| 500000   | 8     |
| 800000   | 9     |
| 1000000  | 10    |
| 666000   | 11    |
| 2000000  | 12    |
| 4000000  | 13    |
| 5000000  | 14    |
| 6667000  | 15    |
| 8000000  | 16    |
| 10000000 | 17    |

| Mode                     | Value |
| ------------------------ | ----- |
| NO\_CANFD                | 0     |
| CANFD\_ENABLED           | 1     |
| CANFD\_BRS\_ENABLED      | 2     |
| CANFD\_ENABLED\_ISO      | 3     |
| CANFD\_BRS\_ENABLED\_ISO | 4     |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.intrepidcs.com/neovi-api/win32-api-overview-intrepidcs-api/structures-types-and-defines-overview-intrepidcs-api/setting-structures-overview-intrepidcs-api/sub-setting-structures-overview-intrepidcs-api/canfd_settings-structure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
