Classes |
struct | serial |
struct | serial_ops |
Defines |
#define | SERIAL_1_STOPBITS 1 |
#define | SERIAL_1_AND_A_HALF_STOPBITS 2 /* 1.5 bits, snicker... */ |
#define | SERIAL_2_STOPBITS 3 |
Typedefs |
typedef void * | serial_ttystate |
typedef void( | serial_event_ftype )(struct serial *scb, void *context) |
Enumerations |
enum | serial_rc { SERIAL_ERROR = -1,
SERIAL_TIMEOUT = -2,
SERIAL_EOF = -3
} |
Functions |
struct serial * | serial_open (const char *name) |
int | serial_is_open (struct serial *scb) |
struct serial * | serial_for_fd (int fd) |
struct serial * | serial_fdopen (const int fd) |
void | serial_close (struct serial *scb) |
void | serial_ref (struct serial *scb) |
void | serial_unref (struct serial *scb) |
int | gdb_pipe (int fildes[2]) |
int | serial_pipe (struct serial *scbs[2]) |
void | serial_un_fdopen (struct serial *scb) |
int | serial_readchar (struct serial *scb, int timeout) |
int | serial_write (struct serial *scb, const void *buf, size_t count) |
void | serial_printf (struct serial *desc, const char *,...) ATTRIBUTE_PRINTF(2 |
void int | serial_drain_output (struct serial *) |
int | serial_flush_output (struct serial *) |
int | serial_flush_input (struct serial *) |
int | serial_send_break (struct serial *scb) |
void | serial_raw (struct serial *scb) |
serial_ttystate | serial_get_tty_state (struct serial *scb) |
serial_ttystate | serial_copy_tty_state (struct serial *scb, serial_ttystate ttystate) |
int | serial_set_tty_state (struct serial *scb, serial_ttystate ttystate) |
void | serial_print_tty_state (struct serial *scb, serial_ttystate ttystate, struct ui_file *) |
int | serial_noflush_set_tty_state (struct serial *scb, serial_ttystate new_ttystate, serial_ttystate old_ttystate) |
int | serial_setbaudrate (struct serial *scb, int rate) |
int | serial_setstopbits (struct serial *scb, int num) |
int | serial_can_async_p (struct serial *scb) |
int | serial_is_async_p (struct serial *scb) |
void | serial_async (struct serial *scb, serial_event_ftype *handler, void *context) |
void | serial_debug (struct serial *scb, int debug_p) |
int | serial_debug_p (struct serial *scb) |
void | serial_add_interface (struct serial_ops *optable) |
void | serial_log_command (const char *) |