-
Notifications
You must be signed in to change notification settings - Fork 0
/
hcl.h
51 lines (43 loc) · 1.54 KB
/
hcl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//==============================================================================
//
// hcl.h - Seiko Epson Hardware Control Library
//
// This layer of indirection is added to allow the sample code to call
// generic functions to work on multiple hardware platforms
//
//
// THE SOFTWARE IS RELEASED INTO THE PUBLIC DOMAIN.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// NONINFRINGEMENT, SECURITY, SATISFACTORY QUALITY, AND FITNESS FOR A
// PARTICULAR PURPOSE. IN NO EVENT SHALL EPSON BE LIABLE FOR ANY LOSS, DAMAGE
// OR CLAIM, ARISING FROM OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF THE
// SOFTWARE.
//
//==============================================================================
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#ifndef OK
#define OK (true)
#endif
#ifndef NG
#define NG (false)
#endif
#define FATAL \
do { \
fprintf(stderr, "Error at line %d, file %s (%d) [%s]\n", __LINE__, \
__FILE__, errno, strerror(errno)); \
exit(1); \
} while (0)
#ifdef __cplusplus
extern "C" {
#endif
int seInit(void);
int seRelease(void);
void seDelayMS(uint32_t millis);
void seDelayMicroSecs(uint32_t micros);
#ifdef __cplusplus
}
#endif