Gateway C ABI
Loading...
Searching...
No Matches
sGCSerialInterface Struct Reference

Serial interface configuration. More...

#include <abi.h>

Data Fields

char interface [GC_INTERFACE_NAME_MAX]
 OS interface path (e.g., "/dev/ttyS0", "/dev/ttyM0")
 
uint32_t baud_rate
 Baud rate (e.g., 9600, 115200)
 
GCParity parity
 Parity setting.
 
GCStopBits stop_bits
 Number of stop bits.
 
GCDataBits data_bits
 Number of data bits.
 

Detailed Description

Serial interface configuration.

Contains configuration for a single serial interface. Plugins query this configuration by logical name to obtain the OS device path and settings. The plugin allocates this structure on the stack and passes a pointer to gcGetSerialInterface so it is overwritten by the function.

Field Documentation

◆ baud_rate

uint32_t sGCSerialInterface::baud_rate

Baud rate (e.g., 9600, 115200)

◆ data_bits

GCDataBits sGCSerialInterface::data_bits

Number of data bits.

◆ interface

char sGCSerialInterface::interface[GC_INTERFACE_NAME_MAX]

OS interface path (e.g., "/dev/ttyS0", "/dev/ttyM0")

◆ parity

GCParity sGCSerialInterface::parity

Parity setting.

◆ stop_bits

GCStopBits sGCSerialInterface::stop_bits

Number of stop bits.


The documentation for this struct was generated from the following file: