27 #include <sys/termios.h> 39 #define STATUS_ERROR 0 53 long write_serial(
int tty_fd,
unsigned char *p_buffer,
long nb_byte);
54 long read_serial(
int tty_fd,
unsigned char *p_buffer,
long nb_bytes_max);
long empty_serial(int tty_fd)
long write_serial(int tty_fd, unsigned char *p_buffer, long nb_byte)
void close_serial(int tty_fd)
long change_baud_serial(int tty_fd, speed_t speed)
long wait_for_serial(int tty_fd, long max_time_secs)
int open_serial(const char *p_tty_name)
long read_serial(int tty_fd, unsigned char *p_buffer, long nb_bytes_max)