This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWaspVariables.h
76 lines (59 loc) · 2.45 KB
/
WaspVariables.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*! \file WaspVariables.h
\brief General variables used through the libraries
Copyright (C) 2016 Libelium Comunicaciones Distribuidas S.L.
http://www.libelium.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Version: 3.0
Design: David Gascón
Implementation: Alberto Bielsa, David Cuartielles
*/
/******************************************************************************
* Includes
******************************************************************************/
#include <inttypes.h>
/******************************************************************************
* Definitions & Declarations
******************************************************************************/
/*! \def intFlag
\brief Flag used for storing the modules that have generated an interruption
*/
/*! \def intConf
\brief Flag used for storing the modules that are enabled to generate an interruption
*/
/*! \def intCounter
\brief Flag that stores the number of interruptions have been generated
*/
/*! \def intArray
\brief Flag used for storing the number of times each different kind of interruption has been generated
*/
volatile uint16_t intFlag;
volatile uint16_t intConf;
volatile uint8_t intCounter;
volatile uint8_t intArray[8];
/*! \def WaspRegister
\brief Bitmap used for managing the different modules and power supplies
by different libraries
*/
volatile uint16_t WaspRegister;
volatile uint16_t WaspRegisterSensor;
/*! \def pwrGasRegister
\brief Bitmap used for managing the power supply for Gases PRO board
0: dust sensor
1: gas sensor on socket 1 or C
2: gas sensor on socket 2
3: gas sensor on socket 3 or F
4: gas sensor on socket 4 or A
5: gas sensor on socket 5 or B
6: gas sensor on socket 6
*/
volatile uint8_t pwrGasPRORegister;
volatile uint8_t pwrCitiesPRORegister;