forked from KONNEKTING/EnOceanGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnOceanDevice_EMPTY.h
63 lines (49 loc) · 1.58 KB
/
EnOceanDevice_EMPTY.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
/*
* EnOceanDevice_EMPTY.h
*
* Created on: 09.03.2018
* Author: Jens
*/
#ifndef EnOceanDevice_EMPTY_H_
#define EnOceanDevice_EMPTY_H_
#include "EnOcean.h"
class EnOceanDevice_EMPTY: public IEnOceanDevice
{
private:
public:
EnOceanDevice_EMPTY()
{
numberOfComObjects = 0;
numberOfParameters = 0;
}
// pre-configure device, set sender-id etc.
void init(uint8_t startAtComObj, uint8_t startAtParameter)
{
firstComObj = startAtComObj;
firstParameter = startAtParameter;
// we only store the first comObj as this information is sufficient to identify all the com-objects
// regarding configuration:
}
// things that need to be done regularly
void task()
{
// nothing to be done regularly for the button-set that is listened to
}
// something happened on the bus, let's react
#pragma GCC diagnostic push // If you don't want to be warned because you are not using index, include that pragma stuff
#pragma GCC diagnostic ignored "-Wunused-parameter"
void handleKnxEvents(byte index)
{
// enter your KNX handling here
}
#pragma GCC diagnostic pop // I don't want a warning, just because we don't do anything here
// decode EnOcean message. Fail fast!
#pragma GCC diagnostic push // If you don't want to be warned because you are not using index, include that pragma stuff
#pragma GCC diagnostic ignored "-Wunused-parameter"
bool handleEnOceanPacket(PACKET_SERIAL_TYPE* f_Pkt_st)
{
return false;
}
#pragma GCC diagnostic pop // I don't want a warning, just because we don't do anything here
};
#endif /* EnOceanDevice_EMPTY_H_ */