Infrared4Arduino
1.2.3
Loading...
Searching...
No Matches
src
PinModeStatus.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2020, 2021 Bengt Martensson.
3
4
This program is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 3 of the License, or (at
7
your option) any later version.
8
9
This program is distributed in the hope that it will be useful, but
10
WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
General Public License for more details.
13
14
You should have received a copy of the GNU General Public License along with
15
this program. If not, see http://www.gnu.org/licenses/.
16
*/
17
30
#pragma once
31
32
#if ! defined(ARDUINO)
33
34
typedef
enum
{
35
LOW = 0,
36
HIGH = 1,
37
CHANGE = 2,
38
FALLING = 3,
39
RISING = 4,
40
}
PinStatus
;
41
42
typedef
enum
{
43
INPUT = 0x0,
44
OUTPUT = 0x1,
45
INPUT_PULLUP = 0x2,
46
INPUT_PULLDOWN = 0x3,
47
}
PinMode
;
48
49
#elif defined(LOW) || defined(DOXYGEN)
// ARDUINO
50
52
typedef
int
PinStatus
;
53
55
typedef
int
PinMode
;
56
57
#else
58
59
// Is Arduino, but LOW is not defined.
60
// We assume that PinStatus and PinMode are defined as enums.
61
62
#endif
PinMode
int PinMode
Different operating modes of a GPIO pin.
Definition:
PinModeStatus.h:55
PinStatus
int PinStatus
Values of a digital pin.
Definition:
PinModeStatus.h:52
Generated on Wed Mar 15 2023 14:15:12 for Infrared4Arduino by
1.9.5