hcl.h
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // hcl.h - Seiko Epson Hardware Control Library
4 //
5 // This layer of indirection is added to allow the sample code to call
6 // generic functions to work on multiple hardware platforms
7 //
8 //
9 // THE SOFTWARE IS RELEASED INTO THE PUBLIC DOMAIN.
10 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12 // NONINFRINGEMENT, SECURITY, SATISFACTORY QUALITY, AND FITNESS FOR A
13 // PARTICULAR PURPOSE. IN NO EVENT SHALL EPSON BE LIABLE FOR ANY LOSS, DAMAGE
14 // OR CLAIM, ARISING FROM OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF THE
15 // SOFTWARE.
16 //
17 //==============================================================================
18 
19 #pragma once
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #include <stdint.h>
26 #include <stdio.h>
27 
28 #ifndef OK
29 #define OK (1)
30 #endif
31 
32 #ifndef NG
33 #define NG (0)
34 #endif
35 
36 #define FATAL \
37  do { \
38  fprintf(stderr, "Error at line %d, file %s (%d) [%s]\n", __LINE__, \
39  __FILE__, errno, strerror(errno)); \
40  exit(1); \
41  } while (0)
42 
43 /*****************************************************************************
44 ** Function name: seInit
45 ** Description: Initialize the Seiko Epson Hardware Control Library
46 ** Parameters: None
47 ** Return value: OK or NG
48 *****************************************************************************/
49 int seInit(void);
50 
51 /*****************************************************************************
52 ** Function name: seRelease
53 ** Description: De-initialize the Seiko Epson Hardware Control Library
54 ** Parameters: None
55 ** Return value: OK or NG
56 *****************************************************************************/
57 int seRelease(void);
58 
59 /*****************************************************************************
60 ** Function name: seDelayMS
61 ** Description: Delay main application thread execution by at least
62 ** the requested number of MilliSeconds
63 ** Parameters: uint32_t milliseconds
64 ** Return value: None
65 *****************************************************************************/
66 void seDelayMS(uint32_t millis);
67 
68 /*****************************************************************************
69 ** Function name: seDelayMicroSecs
70 ** Description: Delay main application thread execution by at least
71 ** the requested number of Microseconds
72 ** Parameters: uint32_t microseconds
73 ** Return value: None
74 *****************************************************************************/
75 void seDelayMicroSecs(uint32_t micros);
76 
77 #ifdef __cplusplus
78 }
79 #endif
int seInit(void)
Definition: hcl_linux.c:30
void seDelayMicroSecs(uint32_t micros)
Definition: hcl_linux.c:57
int seRelease(void)
Definition: hcl_linux.c:38
void seDelayMS(uint32_t millis)
Definition: hcl_linux.c:46


ess_imu_ros1_uart_driver
Author(s):
autogenerated on Sun Jun 4 2023 02:59:29