Public Member Functions | Public Attributes

ACE_TTY_IO::Serial_Params Struct Reference

#include <TTY_IO.h>

List of all members.

Public Member Functions

 Serial_Params (void)

Public Attributes

int baudrate
int xonlim
int xofflim
unsigned int readmincharacters
int readtimeoutmsec
const char * paritymode
bool ctsenb
unsigned char rtsenb
bool xinenb
bool xoutenb
bool modem
bool rcvenb
bool dsrenb
bool dtrdisable
unsigned char databits
unsigned char stopbits

Detailed Description

Definition at line 45 of file TTY_IO.h.


Constructor & Destructor Documentation

ACE_TTY_IO::Serial_Params::Serial_Params ( void   ) 

Definition at line 33 of file TTY_IO.cpp.

{
  baudrate = 9600;
  xonlim = 0;
  xofflim = 0;
  readmincharacters = 0;
  readtimeoutmsec = 10000;
  paritymode = ACE_TTY_IO_NONE;
  ctsenb = false;
  rtsenb = 0;
  xinenb = false;
  xoutenb = false;
  modem = false;
  rcvenb = true;
  dsrenb = false;
  dtrdisable = false;
  databits = 8;
  stopbits = 1;
}


Member Data Documentation

Specifies the baudrate at which the communnication port operates.

Definition at line 50 of file TTY_IO.h.

Enable & set CTS mode. Note that RTS & CTS are enabled/disabled together on some systems (RTS/CTS is enabled if either ctsenb or rtsenb is set).

Definition at line 72 of file TTY_IO.h.

Data bits. Valid values 5, 6, 7 and 8 data bits. Additionally Win32 supports 4 data bits.

Definition at line 97 of file TTY_IO.h.

Controls whether DSR is disabled or enabled (Win32).

Definition at line 92 of file TTY_IO.h.

Controls whether DTR is disabled or enabled.

Definition at line 94 of file TTY_IO.h.

Specifies if device is a modem (POSIX). If not set modem status lines are ignored.

Definition at line 88 of file TTY_IO.h.

Specifies the parity mode. POSIX supports "none", "even" and "odd" parity. Additionally Win32 supports "mark" and "space" parity modes.

Definition at line 68 of file TTY_IO.h.

Enable/disable receiver (POSIX).

Definition at line 90 of file TTY_IO.h.

Specifies the minimum number of characters for non-canonical read (POSIX).

Definition at line 61 of file TTY_IO.h.

Specifies the time to wait before returning from read. Negative value means infinite timeout.

Definition at line 64 of file TTY_IO.h.

Enable & set RTS mode. Note that RTS & CTS are enabled/disabled together on some systems (RTS/CTS is enabled if either ctsenb or rtsenb is set).

  • 0 = Disable RTS.
  • 1 = Enable RTS.
  • 2 = Enable RTS flow-control handshaking (Win32).
  • 3 = Specifies that RTS line will be high if bytes are available for transmission. After transmission RTS will be low (Win32).

Definition at line 81 of file TTY_IO.h.

Stop bits. Valid values are 1 and 2.

Definition at line 99 of file TTY_IO.h.

Enable/disable software flow control on input.

Definition at line 83 of file TTY_IO.h.

Specifies the maximum number of bytes in input buffer before XOFF char is sent. Negative value indicates that default value should be used (Win32).

Definition at line 58 of file TTY_IO.h.

Specifies the minimum number of bytes in input buffer before XON char is sent. Negative value indicates that default value should be used (Win32).

Definition at line 54 of file TTY_IO.h.

Enable/disable software flow control on output.

Definition at line 85 of file TTY_IO.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines