LTPS C++ API
List of all members
Cuart Class Reference

UART base setup functions. More...

#include <Cuart.h>

Static Public Member Functions

Termios helper functions
static void termios_def (struct termios &_termios)
 
static int termios_get (int _fd, struct termios &_termios)
 
static int termios_set (int _fd, struct termios &_termios)
 
Port mode functions
static void mode_def (struct serial_rs485 &_c, CuartMode_t _m)
 Helps to define struct serial_rs485 fields for mode ...
 
static int mode_set (int _fd, struct serial_rs485 &_c)
 
static int mode_get (int _fd, struct serial_rs485 &_c)
 

Detailed Description

UART base setup functions.

Member Function Documentation

static int Cuart::mode_set ( int  _fd,
struct serial_rs485 &  _c 
)
inlinestatic

ioctls get/set for port mode

Return values
0Success
<0Not associated
Examples:
tty485.cpp.
static void Cuart::termios_def ( struct termios &  _termios)
static

Helps to define struct termios fields default speed is 115200

Examples:
tty485.cpp.
static int Cuart::termios_get ( int  _fd,
struct termios &  _termios 
)
inlinestatic

ioctls get/set for port mode

Return values
0Success
<0Not associated

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