38 #ifndef LIGHT_LC_MESSAGES_H__ 39 #define LIGHT_LC_MESSAGES_H__ 42 #include "light_lc_common.h" 54 #define LIGHT_LC_LIGHT_ONOFF_SET_MINLEN 2 56 #define LIGHT_LC_LIGHT_ONOFF_SET_MAXLEN 4 59 #define LIGHT_LC_PROPERTY_SET_STATUS_FIXED_LEN 2 64 #define LIGHT_LC_PROPERTY_GET_LEN 2 67 #define LIGHT_LC_MODE_SET_STATUS_LEN 1 70 #define LIGHT_LC_OCCUPANCY_MODE_SET_STATUS_LEN 1 73 #define LIGHT_LC_LIGHT_ONOFF_STATUS_MINLEN 1 75 #define LIGHT_LC_LIGHT_ONOFF_STATUS_MAXLEN 3 78 #define LIGHT_LC_PROPERTY_SET_STATUS_MINLEN 3 85 LIGHT_LC_MODE_OPCODE_GET = 0x8291,
86 LIGHT_LC_MODE_OPCODE_SET = 0x8292,
87 LIGHT_LC_MODE_OPCODE_SET_UNACKNOWLEDGED = 0x8293,
88 LIGHT_LC_MODE_OPCODE_STATUS = 0x8294,
89 LIGHT_LC_OCCUPANCY_MODE_OPCODE_GET = 0x8295,
90 LIGHT_LC_OCCUPANCY_MODE_OPCODE_SET = 0x8296,
91 LIGHT_LC_OCCUPANCY_MODE_OPCODE_SET_UNACKNOWLEDGED = 0x8297,
92 LIGHT_LC_OCCUPANCY_MODE_OPCODE_STATUS = 0x8298,
93 LIGHT_LC_LIGHT_ONOFF_OPCODE_GET = 0x8299,
94 LIGHT_LC_LIGHT_ONOFF_OPCODE_SET = 0x829A,
95 LIGHT_LC_LIGHT_ONOFF_OPCODE_SET_UNACKNOWLEDGED = 0x829B,
96 LIGHT_LC_LIGHT_ONOFF_OPCODE_STATUS = 0x829C,
97 LIGHT_LC_PROPERTY_OPCODE_GET = 0x829D,
98 LIGHT_LC_PROPERTY_OPCODE_SET = 0x62,
99 LIGHT_LC_PROPERTY_OPCODE_SET_UNACKNOWLEDGED = 0x63,
100 LIGHT_LC_PROPERTY_OPCODE_STATUS = 0x64,
106 typedef struct __attribute((packed))
112 typedef struct __attribute((packed))
118 typedef struct __attribute((packed))
127 typedef struct __attribute((packed))
134 typedef struct __attribute((packed))
141 typedef struct __attribute((packed))
147 typedef struct __attribute((packed))
153 typedef struct __attribute((packed))
161 typedef struct __attribute((packed))
Packed message structure typedefs are used for packing and unpacking byte stream. ...
Message format for the Light LC Mode Status message.
uint16_t property_id
Property ID identifying a Light LC Property.
Message format for the Light LC Occupancy Mode set message.
uint8_t tid
Transaction ID.
Message format for the Light LC Light OnOff set message.
Message format for the Light LC Property Status message.
uint16_t property_id
Property ID identifying a Light LC Property.
Message format for the Light LC Occupancy Mode Status message.
Message format for the Light LC Property set message.
uint8_t mode
The target value of the Mode state.
Message format for the Light LC Property get message.
uint16_t property_id
Property ID identifying a Light LC Property.
uint8_t target_light_onoff
The target value of the Light OnOff state.
uint8_t mode
The present value of the Light LC Mode state.
uint8_t present_light_onoff
The present value of the Light OnOff state.
uint8_t transition_time
Transition time.
uint8_t light_on_off
The target value of the Light LC Light OnOff state.
uint8_t delay
Message execution delay (5 ms steps)
uint8_t occupancy_mode
The target value of the Occupancy Mode state.
uint8_t occupancy_mode
The present value of the Occupancy Mode state.
#define LIGHT_LC_PROPERTY_BUF_SIZE
Property size definitions.
uint8_t remaining_time
Remaining transition time.
Message format for the Light LC Light OnOff Status message.