supla-device
Loading...
Searching...
No Matches
src
supla
definitions.h
1
/*
2
Copyright (C) AC SOFTWARE SP. Z O.O.
3
4
This program is free software; you can redistribute it and/or
5
modify it under the terms of the GNU General Public License
6
as published by the Free Software Foundation; either version 2
7
of the License, or (at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
*/
18
19
#ifndef SRC_SUPLA_DEFINITIONS_H_
20
#define SRC_SUPLA_DEFINITIONS_H_
21
22
#ifdef ARDUINO
23
#include <Arduino.h>
24
#endif
25
26
#ifndef LSBFIRST
27
#define LSBFIRST 0
28
#endif
/*LSBFIRST*/
29
30
#ifndef LOW
31
#define LOW 0
32
#endif
/*LOW*/
33
34
#ifndef HIGH
35
#define HIGH 1
36
#endif
/*HIGH*/
37
38
#ifndef INPUT
39
#define INPUT 0
40
#endif
/*INPUT*/
41
42
#ifndef INPUT_PULLUP
43
#define INPUT_PULLUP 2
44
#endif
/*INPUT_PULLUP*/
45
46
#ifndef OUTPUT
47
#define OUTPUT 1
48
#endif
/*OUTPUT*/
49
50
#ifndef RISING
51
#define RISING 0x01
52
#endif
/*RISING*/
53
54
#ifndef FALLING
55
#define FALLING 0x02
56
#endif
/*FALLING*/
57
58
#ifndef CHANGE
59
#define CHANGE 0x03
60
#endif
/*CHANGE*/
61
62
#ifndef ONLOW
63
#define ONLOW 0x04
64
#endif
/*ONLOW*/
65
66
#ifndef ONHIGH
67
#define ONHIGH 0x05
68
#endif
/*ONHIGH*/
69
70
#ifndef ONLOW_WE
71
#define ONLOW_WE 0x0C
72
#endif
/*ONLOW_WE*/
73
74
#ifndef ONHIGH_WE
75
#define ONHIGH_WE 0x0D
76
#endif
/*ONHIGH_WE*/
77
78
#endif
// SRC_SUPLA_DEFINITIONS_H_
Generated by
1.13.2