-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathradio433_types.h
More file actions
33 lines (27 loc) · 942 Bytes
/
radio433_types.h
File metadata and controls
33 lines (27 loc) · 942 Bytes
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
#ifndef _RADIO433_TYPES_H_
#define _RADIO433_TYPES_H_
/* Supported classes */
#define RADIO433_CLASS_UNKNOWN 0
#define RADIO433_CLASS_POWER 0x0100
#define RADIO433_CLASS_WEATHER 0x0200
#define RADIO433_CLASS_REMOTE 0x0400
/* Supported devices */
#define RADIO433_DEVICE_UNKNOWN 0
#define RADIO433_DEVICE_KEMOTURZ1226 (RADIO433_CLASS_POWER + 0x01)
#define RADIO433_DEVICE_HYUWSSENZOR77TH (RADIO433_CLASS_WEATHER + 0x01)
/* Number of supported devices */
#define RADIO433_DEVICES 2
/* Device and button constants */
#define POWER433_DEVICE_A 0x10
#define POWER433_DEVICE_B 0x08
#define POWER433_DEVICE_C 0x04
#define POWER433_DEVICE_D 0x02
#define POWER433_DEVICE_E 0x01
#define POWER433_BUTTON_OFF 0
#define POWER433_BUTTON_ON 1
/* Temperature trend (direction of change) */
#define THERMO433_TEMP_TREND_DOWN 2
#define THERMO433_TEMP_TREND_UP 1
#define THERMO433_TEMP_TREND_STABLE 0
#define THERMO433_TEMP_TREND_INVALID -1
#endif