38 #ifndef LIGHT_CTL_MESSAGES_H__ 39 #define LIGHT_CTL_MESSAGES_H__ 42 #include "light_ctl_common.h" 52 #define LIGHT_CTL_SET_MINLEN 7 54 #define LIGHT_CTL_SET_MAXLEN 9 57 #define LIGHT_CTL_TEMPERATURE_SET_MINLEN 5 59 #define LIGHT_CTL_TEMPERATURE_SET_MAXLEN 7 62 #define LIGHT_CTL_TEMPERATURE_RANGE_SET_LEN 4 65 #define LIGHT_CTL_DEFAULT_SET_LEN 6 68 #define LIGHT_CTL_STATUS_MINLEN 4 70 #define LIGHT_CTL_STATUS_MAXLEN 9 73 #define LIGHT_CTL_TEMPERATURE_STATUS_MINLEN 4 75 #define LIGHT_CTL_TEMPERATURE_STATUS_MAXLEN 9 78 #define LIGHT_CTL_TEMPERATURE_RANGE_STATUS_LEN 5 81 #define LIGHT_CTL_DEFAULT_STATUS_LEN 6 86 LIGHT_CTL_OPCODE_GET = 0x825D,
87 LIGHT_CTL_OPCODE_SET = 0x825E,
88 LIGHT_CTL_OPCODE_SET_UNACKNOWLEDGED = 0x825F,
89 LIGHT_CTL_OPCODE_STATUS = 0x8260,
90 LIGHT_CTL_OPCODE_TEMPERATURE_GET = 0x8261,
91 LIGHT_CTL_OPCODE_TEMPERATURE_RANGE_GET = 0x8262,
92 LIGHT_CTL_OPCODE_TEMPERATURE_RANGE_STATUS = 0x8263,
93 LIGHT_CTL_OPCODE_TEMPERATURE_SET = 0x8264,
94 LIGHT_CTL_OPCODE_TEMPERATURE_SET_UNACKNOWLEDGED = 0x8265,
95 LIGHT_CTL_OPCODE_TEMPERATURE_STATUS = 0x8266,
96 LIGHT_CTL_OPCODE_DEFAULT_GET = 0x8267,
97 LIGHT_CTL_OPCODE_DEFAULT_STATUS = 0x8268,
98 LIGHT_CTL_OPCODE_DEFAULT_SET = 0x8269,
99 LIGHT_CTL_OPCODE_DEFAULT_SET_UNACKNOWLEDGED = 0x826A,
100 LIGHT_CTL_OPCODE_TEMPERATURE_RANGE_SET = 0x826B,
101 LIGHT_CTL_OPCODE_TEMPERATURE_RANGE_SET_UNACKNOWLEDGED = 0x826C,
102 } light_ctl_opcode_t;
107 typedef struct __attribute((packed))
118 typedef struct __attribute((packed))
128 typedef struct __attribute((packed))
135 typedef struct __attribute((packed))
143 typedef struct __attribute((packed))
153 typedef struct __attribute((packed))
163 typedef struct __attribute((packed))
171 typedef struct __attribute((packed))
Message format for the Light CTL Temperature Status message.
Message format for the Light CTL Status message.
Message format for the Light CTL Temperature Range Set message.
uint16_t delta_uv
Delta UV state to set.
uint16_t range_min
Temperature Range min state to set.
uint16_t lightness
Lightness state to set.
uint16_t range_min
Current value of Temperature Range min state.
uint8_t delay
Encoded message execution delay in 5 millisecond steps.
uint16_t present_delta_uv
The present value of the Delta UV state.
uint16_t temperature
Temperature state to set.
uint16_t temperature
Temperature state to set.
Message format for the Light CTL Temperature Range Status message.
uint16_t range_max
Temperature Range max state to set.
uint16_t target_temperature
The target value of the Temperature state (optional)
uint16_t delta_uv
The target value of the Delta UV default state.
uint8_t transition_time
Encoded transition time value.
uint16_t target_temperature
The target value of the Temperature state (optional)
uint16_t target_lightness
The target value of the Lightness state (optional)
uint16_t temperature
The target value of the Temperature default state.
uint16_t present_temperature
The present value of the Temperature state.
uint8_t tid
Transaction number for application.
uint16_t delta_uv
Delta UV state to set.
uint8_t tid
Transaction number for application.
uint16_t present_temperature
The present value of the Temperature state.
uint16_t temperature
Temperature state to set.
uint16_t present_lightness
The present value of the Lightness state.
uint8_t status_code
Status code for the requesting message.
uint16_t delta_uv
Delta UV state to set.
Message format for the Light CTL Default Status message.
uint16_t lightness
The present value of the Lightness default state.
Message format for the Light CTL Temperature Set message.
Message format for the Light CTL Default Set message.
uint16_t lightness
Lightness state to set.
uint8_t remaining_time
Encoded remaining time.
uint16_t range_max
Current value of Temperature Range max state.
uint8_t delay
Encoded message execution delay in 5 millisecond steps.
uint8_t remaining_time
Encoded remaining time.
uint8_t transition_time
Encoded transition time value.
Packed message structure typedefs are used for packing and unpacking byte stream. ...
uint16_t target_delta_uv
The target value of the Delta UV state (optional)