Main Page
Classes
Files
File List
File Members
include
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
43
class
SerialDevice
44
{
45
int
tty_fd_slot
;
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
SerialDevice::empty_serial
long empty_serial(int tty_fd)
Definition:
kogmo_fob/trackerServer/serialClass/serial.cc:271
SerialDevice::SerialDevice
SerialDevice()
Definition:
kogmo_fob/trackerServer/serialClass/serial.cc:35
SerialDevice::write_serial
long write_serial(int tty_fd, unsigned char *p_buffer, long nb_byte)
Definition:
kogmo_fob/trackerServer/serialClass/serial.cc:142
SerialDevice::tty_fd_slot
int tty_fd_slot
Definition:
include/serial.h:45
SerialDevice::close_serial
void close_serial(int tty_fd)
Definition:
kogmo_fob/trackerServer/serialClass/serial.cc:216
SerialDevice::device_name
char device_name[255]
Definition:
include/serial.h:46
SerialDevice::change_baud_serial
long change_baud_serial(int tty_fd, speed_t speed)
Definition:
kogmo_fob/trackerServer/serialClass/serial.cc:105
SerialDevice::~SerialDevice
~SerialDevice()
Definition:
kogmo_fob/trackerServer/serialClass/serial.cc:29
SerialDevice
Definition:
include/serial.h:43
SerialDevice::wait_for_serial
long wait_for_serial(int tty_fd, long max_time_secs)
Definition:
kogmo_fob/trackerServer/serialClass/serial.cc:235
SerialDevice::open_serial
int open_serial(const char *p_tty_name)
Definition:
kogmo_fob/trackerServer/serialClass/serial.cc:54
SerialDevice::read_serial
long read_serial(int tty_fd, unsigned char *p_buffer, long nb_bytes_max)
Definition:
kogmo_fob/trackerServer/serialClass/serial.cc:171
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