2011-10-05 15:38:16 +02:00
|
|
|
/* token from pseudoterm */
|
|
|
|
#ifndef SERIAL_H
|
|
|
|
#define SERIAL_H
|
|
|
|
|
2013-06-21 04:00:45 +02:00
|
|
|
extern char *baud_rate;
|
2011-10-05 15:38:16 +02:00
|
|
|
|
|
|
|
int open_serial_port(const char *port_name);
|
|
|
|
int write_serial_port(const void *buf, int num);
|
|
|
|
void input_flush_serial_port(void);
|
|
|
|
int read_serial_port_nb(unsigned char *buf, int bufsize);
|
|
|
|
int read_serial_port(unsigned char *buf, int bufsize);
|
|
|
|
void close_serial_port(void);
|
|
|
|
void send_break_signal(void);
|
|
|
|
int set_baud(const char *baud_name);
|
|
|
|
int serial_port_fd(void);
|
|
|
|
void set_rts(int val);
|
|
|
|
void set_dtr(int val);
|
|
|
|
void change_baud(const char *baud_name);
|
|
|
|
|
|
|
|
#endif // SERIAL_H
|