sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
count.h
Go to the documentation of this file.
1 #ifndef COUNT_H
2 #define COUNT_H
3 
4 #include "dev_data.h"
5 #include "features.h"
6 
7 #if defined(N_COUNT)
8 
9 typedef struct {
10  uint8_t port;
11  unsigned char flags;
12 #define CF_FLANK_MASK 0x6
13 #define CF_ALERTING (1<<0)
14 #define CF_FALLING_ONLY (1<<1)
15 #define CF_RISING_ONLY (1<<2)
16 #define CF_IS_ALERT (1<<6)
17 #define CF_IS_ON (1<<7)
18  uint16_t count;
19 #define COUNT_SIZE 2
20 } count_t;
21 
22 extern count_t counts[];
23 
24 #ifdef CONDITIONAL_SEARCH
25 extern uint8_t count_changed_cache;
26 #endif
27 
28 #endif // any inputs or outputs at all
29 #endif // count_h
unsigned int count
Definition: Uno_Dragino_LoRa_GPS_Shield_TTN.ino:97