38 #ifndef GENERIC_LEVEL_MESSAGES_H__ 39 #define GENERIC_LEVEL_MESSAGES_H__ 42 #include "generic_level_common.h" 52 #define GENERIC_LEVEL_SET_MINLEN 3 54 #define GENERIC_LEVEL_SET_MAXLEN 5 57 #define GENERIC_LEVEL_DELTA_SET_MINLEN 5 59 #define GENERIC_LEVEL_DELTA_SET_MAXLEN 7 62 #define GENERIC_LEVEL_MOVE_SET_MINLEN 3 64 #define GENERIC_LEVEL_MOVE_SET_MAXLEN 5 67 #define GENERIC_LEVEL_STATUS_MINLEN 2 69 #define GENERIC_LEVEL_STATUS_MAXLEN 5 76 GENERIC_LEVEL_OPCODE_GET = 0x8205,
77 GENERIC_LEVEL_OPCODE_SET = 0x8206,
78 GENERIC_LEVEL_OPCODE_SET_UNACKNOWLEDGED = 0x8207,
79 GENERIC_LEVEL_OPCODE_STATUS = 0x8208,
80 GENERIC_LEVEL_OPCODE_DELTA_SET = 0x8209,
81 GENERIC_LEVEL_OPCODE_DELTA_SET_UNACKNOWLEDGED = 0x820A,
82 GENERIC_LEVEL_OPCODE_MOVE_SET = 0x820B,
83 GENERIC_LEVEL_OPCODE_MOVE_SET_UNACKNOWLEDGED = 0x820C
84 } generic_level_opcode_t;
89 typedef struct __attribute((packed))
98 typedef struct __attribute((packed))
107 typedef struct __attribute((packed))
116 typedef struct __attribute((packed))
uint8_t tid
Transaction number for application.
int16_t target_level
The target value of the Generic Level state (optional)
Packed message structure typedefs are used for packing and unpacking byte stream. ...
Message format for the generic_level Move Set message.
uint8_t transition_time
Encoded transition time value.
Message format for the generic_level Delta Set message.
uint8_t transition_time
Encoded transition time value.
uint8_t delay
Encoded message execution delay in 5 millisecond steps.
int16_t level
State to set.
uint8_t transition_time
Encoded transition time value.
int16_t move_level
State to set.
uint8_t remaining_time
Encoded remaining time.
uint8_t tid
Transaction number for application.
uint8_t delay
Encoded message execution delay in 5 millisecond steps.
int16_t present_level
The present value of the Generic Level state.
Message format for the generic_level Status message.
uint8_t delay
Encoded message execution delay in 5 millisecond steps.
int32_t delta_level
State to set.
uint8_t tid
Transaction number for application.