include/serial.h
Go to the documentation of this file.
1 
18 #ifndef SERIAL_H
19 #define SERIAL_H
20 
21 
22 /******************************************************************************
23  *** INCLUDES
24  ******************************************************************************
25  */
26 
27 #include <termio.h>
28 #include <sys/termios.h>
29 
30 /******************************************************************************
31  *** PROTOTYPES der von sick.c verwendeten Funktionen
32  ******************************************************************************
33  */
34 
35 /******************************************************************************
36  *** MY DEFINES
37  ******************************************************************************
38  */
39 #define STATUS_OK 1
40 #define STATUS_ERROR 0
41 
42 
44 {
46  char device_name[255];
47 
48  public:
49  SerialDevice();
50  ~SerialDevice();
51 
52  int open_serial (const char *p_tty_name);
53  long change_baud_serial (int tty_fd, speed_t speed);
54  long write_serial(int tty_fd, unsigned char *p_buffer, long nb_byte);
55  long read_serial(int tty_fd, unsigned char *p_buffer, long nb_bytes_max);
56  long wait_for_serial (int tty_fd, long max_time_secs);
57  void close_serial (int tty_fd);
58  long empty_serial (int tty_fd);
59 
60  protected:
61 
62 };
63 #endif
64 
65 
66 
67 
68 
69 
70 
71 
72 
73 
74 
75 
76 
long write_serial(int tty_fd, unsigned char *p_buffer, long nb_byte)
char device_name[255]
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)


asr_flock_of_birds
Author(s): Bernhardt Andre, Engelmann Stephan, Giesler Björn, Heller Florian, Jäkel Rainer, Nguyen Trung, Pardowitz Michael, Weckesser Peter, Yi Xie, Zöllner Raoul
autogenerated on Mon Jun 10 2019 12:44:40