inertial-sense-sdk/src/serialPortPlatform.h
Go to the documentation of this file.
1 /*
2 MIT LICENSE
3 
4 Copyright (c) 2014-2020 Inertial Sense, Inc. - http://inertialsense.com
5 
6 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :
7 
8 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9 
10 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 */
12 
13 #ifndef __IS_SERIALPORT_PLATFORM_H
14 #define __IS_SERIALPORT_PLATFORM_H
15 
16 #include "serialPort.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 // zero the struct then assign function pointers for common platforms such as Windows
23 // returns non-zero if success, 0 if platform not implemented
24 int serialPortPlatformInit(serial_port_t* serialPort);
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 
30 #endif // __IS_SERIALPORT_PLATFORM_H
int serialPortPlatformInit(serial_port_t *serialPort)


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:05