> For the complete documentation index, see [llms.txt](https://docs.intrepidcs.com/neovi-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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/lin_settings-structure.md).

# LIN\_SETTINGS Structure

This structure defines settings for LIN networks on supported hardware devices.

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

```cpp
typedef struct __declspec (align(2))
 {
  unsigned int Baudrate;
  unsigned short spbrg;
  unsigned char brgh;
  unsigned char NumBitsDelay;
  unsigned char MasterResistor;
  unsigned char Mode;
 }LIN_SETTINGS;
```

{% endtab %}

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

```vbnet
<StructLayout(LayoutKind.Sequential, Pack:=2)> Public Structure LIN_SETTINGS
    Dim Baudrate As UInt32
    Dim spbrg As UInt16
    Dim brgh As Byte
    Dim NumBitsDelay As Byte
    Dim MasterResistor As Byte
    Dim Mode As Byte
End Structure
```

{% endtab %}

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

```csharp
[StructLayout(LayoutKind.Sequential,Pack=2)]
public struct LIN_SETTINGS
{
    public UInt32 Baudrate;
    public UInt16 spbrg;
    public byte brgh;
    public byte NumBitsDelay;
    public byte MasterResistor;
    public byte Mode;
}
```

{% endtab %}
{% endtabs %}

**Remarks**

| Item           | Description                                              |
| -------------- | -------------------------------------------------------- |
| Baudrate       | Baudrate to be set                                       |
| spbrg          | Only use with neoVI FIRE. 40Mhz/Baudrate/16-1 = spbrg    |
| brgh           | Set to 0                                                 |
| NumBitsDelay   | Delay to set between Header and Slave data. Default is 0 |
| MasterResistor | Enable for Master Resistor Off=0: On=1:                  |
| Mode           | Sets the LIN Mode Sleep=0: Slow=1: Normal=2: Fast=2:     |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` 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/lin_settings-structure.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
