38 #ifndef LIGHT_LIGHTNESS_MESSAGES_H__ 39 #define LIGHT_LIGHTNESS_MESSAGES_H__ 42 #include "light_lightness_common.h" 52 #define LIGHT_LIGHTNESS_SET_MINLEN 3 54 #define LIGHT_LIGHTNESS_SET_MAXLEN 5 57 #define LIGHT_LIGHTNESS_LINEAR_SET_MINLEN 3 59 #define LIGHT_LIGHTNESS_LINEAR_SET_MAXLEN 5 62 #define LIGHT_LIGHTNESS_DEFAULT_SET_LEN 2 65 #define LIGHT_LIGHTNESS_RANGE_SET_LEN 4 68 #define LIGHT_LIGHTNESS_STATUS_MINLEN 2 70 #define LIGHT_LIGHTNESS_STATUS_MAXLEN 5 73 #define LIGHT_LIGHTNESS_LINEAR_STATUS_MINLEN 2 75 #define LIGHT_LIGHTNESS_LINEAR_STATUS_MAXLEN 5 78 #define LIGHT_LIGHTNESS_LAST_STATUS_LEN 2 81 #define LIGHT_LIGHTNESS_DEFAULT_STATUS_LEN 2 84 #define LIGHT_LIGHTNESS_RANGE_STATUS_LEN 5 89 LIGHT_LIGHTNESS_OPCODE_GET = 0x824B,
90 LIGHT_LIGHTNESS_OPCODE_SET = 0x824C,
91 LIGHT_LIGHTNESS_OPCODE_SET_UNACKNOWLEDGED = 0x824D,
92 LIGHT_LIGHTNESS_OPCODE_STATUS = 0x824E,
93 LIGHT_LIGHTNESS_OPCODE_LINEAR_GET = 0x824F,
94 LIGHT_LIGHTNESS_OPCODE_LINEAR_SET = 0x8250,
95 LIGHT_LIGHTNESS_OPCODE_LINEAR_SET_UNACKNOWLEDGED = 0x8251,
96 LIGHT_LIGHTNESS_OPCODE_LINEAR_STATUS = 0x8252,
97 LIGHT_LIGHTNESS_OPCODE_LAST_GET = 0x8253,
98 LIGHT_LIGHTNESS_OPCODE_LAST_STATUS = 0x8254,
99 LIGHT_LIGHTNESS_OPCODE_DEFAULT_GET = 0x8255,
100 LIGHT_LIGHTNESS_OPCODE_DEFAULT_STATUS = 0x8256,
101 LIGHT_LIGHTNESS_OPCODE_RANGE_GET = 0x8257,
102 LIGHT_LIGHTNESS_OPCODE_RANGE_STATUS = 0x8258,
103 LIGHT_LIGHTNESS_OPCODE_DEFAULT_SET = 0x8259,
104 LIGHT_LIGHTNESS_OPCODE_DEFAULT_SET_UNACKNOWLEDGED = 0x825A,
105 LIGHT_LIGHTNESS_OPCODE_RANGE_SET = 0x825B,
106 LIGHT_LIGHTNESS_OPCODE_RANGE_SET_UNACKNOWLEDGED = 0x825C,
107 } light_lightness_opcode_t;
112 typedef struct __attribute((packed))
121 typedef struct __attribute((packed))
130 typedef struct __attribute((packed))
136 typedef struct __attribute((packed))
143 typedef struct __attribute((packed))
151 typedef struct __attribute((packed))
159 typedef struct __attribute((packed))
165 typedef struct __attribute((packed))
171 typedef struct __attribute((packed))
uint8_t delay
Encoded message execution delay in 5 millisecond steps.
Message format for the Light Lightness Last Status message (actual/perceptually uniform state)...
uint16_t present_lightness
The present value of the lightness state.
uint16_t range_min
The value of the lightness range min state.
Message format for the Light Lightness Default Status message (actual/perceptually uniform state)...
uint16_t lightness
The value of the lightness last state.
Message format for the Light Lightness Default Set message.
uint8_t tid
Transaction number for application.
uint16_t range_min
The value of the lightness range min state.
Message format for the Light Lightness Linear Status message.
uint16_t lightness
State to set.
Message format for the Light Lightness Status message (actual/perceptually uniform state)...
uint16_t lightness
State to set.
Packed message structure typedefs are used for packing and unpacking byte stream. ...
uint16_t target_lightness
The target value of the lightness state (optional)
uint16_t range_max
The value of the lightness range max state.
uint8_t remaining_time
Encoded remaining time.
Message format for the Light Lightness Linear Set message.
uint16_t target_lightness
The target value of the linear lightness state (optional)
uint16_t lightness
State to set.
uint8_t tid
Transaction number for application.
uint16_t present_lightness
The present value of the linear lightness state.
uint16_t lightness
The value of the lightness last state.
uint8_t transition_time
Encoded transition time value.
Message format for the Light Lightness Range Status message.
uint16_t range_max
The value of the lightness range max state.
Message format for the Light Lightness Range Set message.
uint8_t transition_time
Encoded transition time value.
uint8_t remaining_time
Encoded remaining time.
uint8_t delay
Encoded message execution delay in 5 millisecond steps.