EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoMaintenanceMessage.h
1 #pragma once
2 #include "eoMessage.h"
3 #include "eoReManMessage.h"
4 typedef enum
5 {
6  MAINTENANCE_KEY_RESERVED = 0,
7  MAINTENANCE_KEY_1,
8  MAINTENANCE_KEY_2,
9  MAINTENANCE_KEY_3,
10  MAINTENANCE_KEY_4,
11  MAINTENANCE_KEY_5,
12  MAINTENANCE_KEY_6,
13  MAINTENANCE_KEY_7,
14  MAINTENANCE_KEY_8,
15  MAINTENANCE_KEY_9,
16  MAINTENANCE_KEY_10,
17  MAINTENANCE_KEY_11,
18  MAINTENANCE_KEY_12,
19  MAINTENANCE_KEY_13,
20  MAINTENANCE_KEY_14,
21  MAINTENANCE_KEY_15,
22  MAINTENANCE_KEY_MAX,
23 } eoMaintenanceKey;
24 
25 typedef enum
26 {
28  MAINTENANCE_SINGLE_DATA,
30  MAINTENANCE_CHAINED_DATA,
32  MAINTENANCE_SYS_EX,
34  MAINTENANCE_RESERVED,
35 } eoMaintenanceMessageType;
36 
37 typedef enum
38 {
39  ENCRYPTED,
40  DECRYPTED,
41  DECRYPTION_FAILED,
42 } eoMaintenancSecurityState;
43 
57  public eoMessage
58 {
59 public:
61 
63  eoMaintenanceMessage(uint16_t u16Size);
66  eoMaintenanceKey usedKey;
68  eoMaintenanceMessageType type;
70  eoReturn copyTo(eoReManMessage &msg) const;
73 
75  eoMaintenancSecurityState securityStatus;
76 
78  uint16_t fnCode;
80  uint16_t manufacturerID;
81 
82 };
83 
eoReturn copyTo(eoReManMessage &msg) const
Copies the maintenance message to a reman message if the maintenance message is of the sys_ex type...
eoMaintenanceKey usedKey
The maintenance key which shall be used, starts by 1 and can be max 15.
Definition: eoMaintenanceMessage.h:66
Message Class for communication.
Definition: eoMessage.h:47
eoMaintenancSecurityState securityStatus
State of the security.
Definition: eoMaintenanceMessage.h:75
The maintenance message class, these messages represent an EnOcean maintenance message.
Definition: eoMaintenanceMessage.h:56
eoMaintenanceMessageType type
The type of the maintenance message.
Definition: eoMaintenanceMessage.h:68
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
uint16_t fnCode
Remote Management Function Code of the Remote Management Message.
Definition: eoMaintenanceMessage.h:78
Definition: eoReManMessage.h:43
uint16_t manufacturerID
Manufacturer ID of the Remote Management Message.
Definition: eoMaintenanceMessage.h:80