|
Public Types |
enum | TTYparity { TTY_ODD,
TTY_EVEN,
TTY_NONE
} |
Public Methods |
| TTYfd (const char *dev, const char *name) |
| TTYfd () |
virtual | ~TTYfd () |
virtual void | sample () |
virtual bool | activate () |
virtual bool | deactivate () |
int | open () |
int | close () |
int | not_configured (int, int) |
int | clear () |
int | send_break (int duration) |
void | print_flags () |
int | set_speed (long speed) |
int | set_stopbits (int num) |
int | set_charsize (short size) |
int | set_parity (TTYparity parity) |
int | set_min_and_time (int min_num_chars, int min_delay_between_chars_or_total_time) |
int | set_flags () |
int | get_flags () |
int | read_synchronized (char sentinel, int sentinel_bit, int which, int record_size, char *buf) |
int | read_synchronized (char sentinel, int record_size, char *buf) |
int | read_synchronized (int sentinel_bit, int record_size, char *buf) |
int | read_all (char *buf, int maxbytes) |
int | nread (char *buf, int readnum, int timeout_millisecs) |
int | drain () |
int | write (const char *buf, int writenum, int timeout_millisecs) |
int | setup () |
Protected Types |
enum | { MAX_REC_SIZE = 128
} |
Protected Attributes |
char | _dev [256] |
char | _synch_buf [MAX_REC_SIZE] |
int | _synch_pos |
TTYfd_privates & | _privates |