Main Page
Classes
Class List
Class Members
All
a
c
d
e
f
g
h
i
m
n
o
p
q
r
s
t
Functions
Variables
a
c
d
e
f
g
h
i
m
n
o
p
q
r
t
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
u
v
w
Functions
c
d
g
i
m
n
o
p
r
s
u
w
Variables
Enumerations
Enumerator
Macros
a
b
c
d
e
f
m
n
o
r
s
v
w
src
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
#include <stdbool.h>
22
#include <stdint.h>
23
#include <stdio.h>
24
25
#ifndef OK
26
#define OK (true)
27
#endif
28
29
#ifndef NG
30
#define NG (false)
31
#endif
32
33
#define FATAL \
34
do { \
35
fprintf(stderr, "Error at line %d, file %s (%d) [%s]\n", __LINE__, \
36
__FILE__, errno, strerror(errno)); \
37
exit(1); \
38
} while (0)
39
40
#ifdef __cplusplus
41
extern
"C"
{
42
#endif
43
44
int
seInit
(
void
);
45
int
seRelease
(
void
);
46
void
seDelayMS
(uint32_t millis);
47
void
seDelayMicroSecs
(uint32_t micros);
48
49
#ifdef __cplusplus
50
}
51
#endif
seDelayMicroSecs
void seDelayMicroSecs(uint32_t micros)
Definition:
hcl_linux.c:58
seDelayMS
void seDelayMS(uint32_t millis)
Definition:
hcl_linux.c:47
seRelease
int seRelease(void)
Definition:
hcl_linux.c:39
seInit
int seInit(void)
Definition:
hcl_linux.c:31
ess_imu_driver
Author(s):
autogenerated on Wed Dec 11 2024 03:06:30