Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
segwayrmp
impl
rmp_serial.h
Go to the documentation of this file.
1
37
#ifndef RMP_SERIAL_H
38
#define RMP_SERIAL_H
39
40
#include "
rmp_io.h
"
41
42
#include "
serial/serial.h
"
43
44
namespace
segwayrmp
{
45
49
class
SerialRMPIO
:
public
RMPIO
{
50
public
:
54
SerialRMPIO
();
55
~SerialRMPIO
();
56
60
void
connect
();
61
65
void
disconnect
();
66
74
int
read
(
unsigned
char
* buffer,
int
size);
75
83
int
write
(
unsigned
char
* buffer,
int
size);
84
91
void
configure
(std::string
port
,
int
baudrate
);
92
93
private
:
94
bool
configured
;
95
96
std::string
port
;
97
int
baudrate
;
98
99
serial::Serial
serial_port
;
100
};
101
102
}
103
104
#endif
segwayrmp::SerialRMPIO::configure
void configure(std::string port, int baudrate)
Definition:
rmp_serial.cc:17
rmp_io.h
segwayrmp::SerialRMPIO::baudrate
int baudrate
Definition:
rmp_serial.h:97
segwayrmp::SerialRMPIO::serial_port
serial::Serial serial_port
Definition:
rmp_serial.h:99
segwayrmp::SerialRMPIO::configured
bool configured
Definition:
rmp_serial.h:94
segwayrmp::SerialRMPIO::disconnect
void disconnect()
Definition:
rmp_serial.cc:41
segwayrmp::SerialRMPIO::SerialRMPIO
SerialRMPIO()
Definition:
rmp_serial.cc:9
segwayrmp::SerialRMPIO::read
int read(unsigned char *buffer, int size)
Definition:
rmp_serial.cc:49
segwayrmp::RMPIO
Definition:
rmp_io.h:68
segwayrmp::SerialRMPIO::connect
void connect()
Definition:
rmp_serial.cc:23
serial::Serial
segwayrmp::SerialRMPIO::write
int write(unsigned char *buffer, int size)
Definition:
rmp_serial.cc:53
serial.h
segwayrmp::SerialRMPIO::~SerialRMPIO
~SerialRMPIO()
Definition:
rmp_serial.cc:13
segwayrmp
Definition:
rmp_ftd2xx.h:45
segwayrmp::SerialRMPIO
Definition:
rmp_serial.h:49
segwayrmp::SerialRMPIO::port
std::string port
Definition:
rmp_serial.h:96
libsegwayrmp
Author(s): William Woodall
autogenerated on Mon Jun 10 2019 13:46:49