SeaBreeze
include
native
rs232
RS232.h
Go to the documentation of this file.
1
/***************************************************/
30
#ifndef SEABREEZE_RS232_H
31
#define SEABREEZE_RS232_H
32
33
#include "
native/rs232/NativeRS232.h
"
34
35
namespace
seabreeze
{
36
37
class
RS232
{
38
public
:
39
RS232
(
const
char
*devicePath,
int
baudRate);
40
virtual
~
RS232
();
41
42
bool
open();
43
bool
close();
44
int
write(
void
*data,
unsigned
int
length_bytes);
45
int
read(
void
*data,
unsigned
int
length_bytes);
46
47
void
setVerbose(
bool
v);
48
bool
isOpened();
49
50
protected
:
51
52
/* These methods are primarily for debugging. */
53
void
rs232HexDump(
void
*x,
int
length,
bool
out);
54
void
hexDump(
void
*x,
int
length);
55
void
describeTransfer(
int
length,
bool
out);
56
57
void
*descriptor;
58
bool
opened;
59
bool
verbose;
60
char
*devicePath;
61
int
baudRate;
62
};
63
64
}
65
66
#endif
seabreeze::RS232
Definition:
RS232.h:37
NativeRS232.h
seabreeze
Encapsulates all SeaBreeze classes.
Definition:
DeviceFactory.h:42
Generated on Sun Jan 19 2020 16:01:08 for SeaBreeze by
1.8.13