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_linux.c
Go to the documentation of this file.
1
//==============================================================================
2
//
3
// hcl_linux.c - 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 linux-based 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
#include <stdint.h>
20
#include <stdio.h>
21
#include <unistd.h>
22
23
#include "
hcl.h
"
24
25
/*****************************************************************************
26
** Function name: seInit
27
** Description: Initialize the Seiko Epson HCL libraries.
28
** Parameters: None
29
** Return value: 1=OK
30
*****************************************************************************/
31
int
seInit
(
void
) {
return
OK
; }
32
33
/*****************************************************************************
34
** Function name: seRelease
35
** Description: Release any resources held by this module.
36
** Parameters: None
37
** Return value: OK
38
*****************************************************************************/
39
int
seRelease
(
void
) {
return
OK
; }
40
41
/*****************************************************************************
42
** Function name: seDelayMS
43
** Description: Call this function to generate delay in milliseconds.
44
** Parameters: Time in milliseconds
45
** Return value: None
46
*****************************************************************************/
47
void
seDelayMS
(uint32_t millis) {
48
millis *= 1000;
49
usleep(millis);
50
}
51
52
/*****************************************************************************
53
** Function name: seDelayMicroSecs
54
** Description: Call this function to generate delay in microseconds.
55
** Parameters: Time in milliseconds
56
** Return value: None
57
*****************************************************************************/
58
void
seDelayMicroSecs
(uint32_t micros) { usleep(micros); }
seRelease
int seRelease(void)
Definition:
hcl_linux.c:39
seInit
int seInit(void)
Definition:
hcl_linux.c:31
hcl.h
seDelayMS
void seDelayMS(uint32_t millis)
Definition:
hcl_linux.c:47
OK
#define OK
Definition:
hcl.h:26
seDelayMicroSecs
void seDelayMicroSecs(uint32_t micros)
Definition:
hcl_linux.c:58
ess_imu_driver
Author(s):
autogenerated on Wed Dec 11 2024 03:06:30