|
Gateway C ABI
|
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. | |
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.
| uint32_t sGCSerialInterface::baud_rate |
Baud rate (e.g., 9600, 115200)
| GCDataBits sGCSerialInterface::data_bits |
Number of data bits.
| char sGCSerialInterface::interface[GC_INTERFACE_NAME_MAX] |
OS interface path (e.g., "/dev/ttyS0", "/dev/ttyM0")
| GCParity sGCSerialInterface::parity |
Parity setting.
| GCStopBits sGCSerialInterface::stop_bits |
Number of stop bits.