MRPT
1.9.9
xsbaudrate.h
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| https://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
6
| See: https://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See: https://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
#ifndef XSBAUDRATE_H
10
#define XSBAUDRATE_H
11
12
#ifdef _WIN32
13
#include <windows.h>
14
#else
15
#include <termios.h>
16
#ifndef B460800
17
#undef B230400
18
#define B230400 0010003
19
#define B460800 0010004
20
#define B921600 0010007
21
#endif
22
#endif
23
24
/*! \brief Communication speed. */
25
#ifdef _WIN32
26
27
enum
XsBaudRate
28
{
29
/** Not a valid baud rate */
30
XBR_Invalid
= 0,
31
/** 4k8 (4800 bps) */
32
XBR_4800
= CBR_4800,
33
/** 9k6 (9600 bps) */
34
XBR_9600
= CBR_9600,
35
// XBR_14k4 = CBR_14400,
36
/** 19k2 (19200 bps) */
37
XBR_19k2
= CBR_19200,
38
// XBR_28k8 = 28800,
39
/** 38k4 (38400 bps) */
40
XBR_38k4
= CBR_38400,
41
/** 57k6 (57600 bps) */
42
XBR_57k6
= CBR_57600,
43
/** 115k2 (115200 bps) */
44
XBR_115k2
= CBR_115200,
45
/** 230k4 (230400 bps) */
46
XBR_230k4
= 230400,
47
/** 460k8 (460800 bps) */
48
XBR_460k8
= 460800,
49
/** 921k6 (921600 bps) */
50
XBR_921k6
= 921600,
51
/** 2000k0 (2000000 bps) */
52
XBR_2000k
= 2000000,
53
/** 4000k0 (4000000 bps) */
54
XBR_4000k
= 4000000
55
};
56
57
#else
58
59
enum
XSNOCOMEXPORT
XsBaudRate
60
{
61
/** Not a valid baud rate */
62
XBR_Invalid
= 0,
63
64
#ifndef B2000000
65
#define B2000000 2000000
66
#endif
67
#ifndef B4000000
68
#define B4000000 4000000
69
#endif
70
71
/** 4k8 (4800 bps) */
72
XBR_4800
= B4800,
73
/** 9k6 (9600 bps) */
74
XBR_9600
= B9600,
75
// XBR_14k4 = B14400,
76
/** 19k2 (19200 bps) */
77
XBR_19k2
= B19200,
78
// XBR_28k8 = B28800,
79
/** 38k4 (38400 bps) */
80
XBR_38k4
= B38400,
81
/** 57k6 (57600 bps) */
82
XBR_57k6
= B57600,
83
/** 115k2 (115200 bps) */
84
XBR_115k2
= B115200,
85
/** 230k4 (230400 bps) */
86
XBR_230k4
= B230400,
87
/** 460k8 (460800 bps) */
88
XBR_460k8
= B460800,
89
/** 921k6 (921600 bps) */
90
XBR_921k6
= B921600,
91
/** 2000k0 (2000000 bps) */
92
XBR_2000k
= B2000000,
93
/** 4000k0 (4000000 bps) */
94
XBR_4000k
= B4000000
95
};
96
97
#endif
98
99
#endif
XBR_2000k
2000k0 (2000000 bps)
Definition:
xsbaudrate.h:52
XBR_9600
9k6 (9600 bps)
Definition:
xsbaudrate.h:34
XBR_Invalid
Not a valid baud rate.
Definition:
xsbaudrate.h:30
XBR_4800
4k8 (4800 bps)
Definition:
xsbaudrate.h:32
XBR_57k6
57k6 (57600 bps)
Definition:
xsbaudrate.h:42
XBR_38k4
38k4 (38400 bps)
Definition:
xsbaudrate.h:40
XBR_230k4
230k4 (230400 bps)
Definition:
xsbaudrate.h:46
XBR_921k6
921k6 (921600 bps)
Definition:
xsbaudrate.h:50
XBR_4000k
4000k0 (4000000 bps)
Definition:
xsbaudrate.h:54
XBR_19k2
19k2 (19200 bps)
Definition:
xsbaudrate.h:37
XsBaudRate
XsBaudRate
Communication speed.
Definition:
xsbaudrate.h:27
XBR_460k8
460k8 (460800 bps)
Definition:
xsbaudrate.h:48
XBR_115k2
115k2 (115200 bps)
Definition:
xsbaudrate.h:44
Page generated by
Doxygen 1.8.14
for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019