-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.h
48 lines (42 loc) · 2 KB
/
main.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
/****************************************************************************/
/* vproweather 1.0 */
/* A program for acquiring data from a Davis Vantage Pro Weather Station. */
/* */
/* Thanks to Paul Davis for his 'remserial' program, and Aaron Logue's */
/* 'weastat' program. */
/* */
/* (c)2004 Joe Jaworski email: [email protected] */
/* VPROWEATHER is covered under the GNU general license. See the attached */
/* LICENSE file for details. */
/* */
/* This software is provided as-is, without any expressed or implied */
/* warranties, including, without limitation, the implied warranties of */
/* merchantibility and fitness for any particular purpose. */
/* */
/* */
/* main.h.h - main header file */
/* tabs every 4 places */
/* */
/****************************************************************************/
#ifndef __MAIN_H__
#define __MAIN_H__
#ifdef __cplusplus
#define extern "C" { /* respect c++ callers */
#endif
#define CR 0x0d
#define LF 0x0a
#define ACK 0x06
#define ACK_STR "\x06"
#define NAK 0x21
#define NAK_STR "\x21"
#define CANCEL 0x18
#define CANCEL_STR "\x18"
#define ESC 0x1b
#define ESC_STR "\x1b"
#ifndef PACKED
#define PACKED __attribute__ ((__packed__))
#endif // PACKED
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __MAIN_H__ */