MRPT  1.9.9
xsbaud.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 XSBAUD_H
10 #define XSBAUD_H
11 
12 #include "xstypesconfig.h"
13 
14 /*! \addtogroup enums Global enumerations
15  @{
16 */
17 
18 #include "xsbaudcode.h"
19 #include "xsbaudrate.h"
20 
21 /*! @} */
22 
23 typedef enum XsBaudCode XsBaudCode;
24 typedef enum XsBaudRate XsBaudRate;
25 
26 #ifdef __cplusplus
27 extern "C"
28 {
29 #endif
30 
35 
36 #ifdef __cplusplus
37 } // extern "C"
38 
39 /*! \namespace XsBaud
40  \brief Namespace for Baud rate and Baud code constants and conversions
41 */
42 namespace XsBaud
43 {
44 /*! \copydoc XsBaud_codeToRate */
45 inline XsBaudRate codeToRate(XsBaudCode baudcode)
46 {
47  return XsBaud_codeToRate(baudcode);
48 }
49 /*! \copydoc XsBaud_rateToCode */
50 inline XsBaudCode rateToCode(XsBaudRate baudrate)
51 {
52  return XsBaud_rateToCode(baudrate);
53 }
54 /*! \copydoc XsBaud_rateToNumeric */
55 inline int rateToNumeric(XsBaudRate baudrate)
56 {
57  return XsBaud_rateToNumeric(baudrate);
58 }
59 /*! \copydoc XsBaud_numericToRate*/
60 inline XsBaudRate numericToRate(int numeric)
61 {
62  return XsBaud_numericToRate(numeric);
63 }
64 } // namespace XsBaud
65 
66 #endif
67 
68 #endif // file guard
XSTYPES_DLL_API XsBaudRate XsBaud_numericToRate(int numeric)
XSTYPES_DLL_API XsBaudCode XsBaud_rateToCode(XsBaudRate baudrate)
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
enum XsBaudCode XsBaudCode
Definition: xsbaud.h:23
XsBaudRate
Communication speed.
Definition: xsbaudrate.h:27
enum XsBaudRate XsBaudRate
Definition: xsbaud.h:24
XSTYPES_DLL_API int XsBaud_rateToNumeric(XsBaudRate baudrate)
XSTYPES_DLL_API XsBaudRate XsBaud_codeToRate(XsBaudCode baudcode)



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