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 generic
6 // 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 IMPLIED,
11 // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT,
12 // SECURITY, SATISFACTORY QUALITY, AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
13 // SHALL EPSON BE LIABLE FOR ANY LOSS, DAMAGE OR CLAIM, ARISING FROM OR IN CONNECTION
14 // WITH THE SOFTWARE OR THE USE OF THE SOFTWARE.
15 //
16 //==============================================================================
17 
18 #pragma once
19 
20 #ifdef __cplusplus
21  extern "C" {
22 #endif
23 
24 #include <stdio.h>
25 #include <stdint.h>
26 
27 
28 #define SUCCESS (1)
29 #define FAIL (0)
30 
31 #define FATAL do { fprintf(stderr, "Error at line %d, file %s (%d) [%s]\n", \
32  __LINE__, __FILE__, errno, strerror(errno)); exit(1); } while(0)
33 
34 
35 //----------------------------------------------------------------------------
36 // int seInit()
37 // Initialize the Seiko Epson HCL libraries.
38 //
39 // Returns 1 if successful
40 //----------------------------------------------------------------------------
41 int seInit(void);
42 
43 //----------------------------------------------------------------------------
44 // int seRelease()
45 // De-Initialize the Seiko Epson HCL libraries.
46 //
47 // Returns 1 if successful
48 //----------------------------------------------------------------------------
49 int seRelease(void);
50 
51 void seDelayMS(uint32_t millis);
52 
53 void seDelayMicroSecs(uint32_t micros);
54 
55 
56 #ifdef __cplusplus
57  }
58 #endif
59 
int seInit(void)
Definition: hcl_linux.c:28
void seDelayMicroSecs(uint32_t micros)
Definition: hcl_linux.c:67
int seRelease(void)
Definition: hcl_linux.c:42
void seDelayMS(uint32_t millis)
Definition: hcl_linux.c:54


epson_g364_imu_driver
Author(s):
autogenerated on Mon Jun 10 2019 13:12:32