38 #ifndef GENERIC_ONOFF_MESSAGES_H__ 39 #define GENERIC_ONOFF_MESSAGES_H__ 52 #define GENERIC_ONOFF_SET_MINLEN 2 54 #define GENERIC_ONOFF_SET_MAXLEN 4 57 #define GENERIC_ONOFF_STATUS_MINLEN 1 59 #define GENERIC_ONOFF_STATUS_MAXLEN 3 64 GENERIC_ONOFF_OPCODE_SET = 0x8202,
65 GENERIC_ONOFF_OPCODE_SET_UNACKNOWLEDGED = 0x8203,
66 GENERIC_ONOFF_OPCODE_GET = 0x8201,
67 GENERIC_ONOFF_OPCODE_STATUS = 0x8204
68 } generic_onoff_opcode_t;
73 typedef struct __attribute((packed))
82 typedef struct __attribute((packed))
uint8_t tid
Transaction number for application.
uint8_t on_off
State to set.
Packed message structure typedefs are used for packing and unpacking byte stream. ...
uint8_t remaining_time
Encoded remaining time.
uint8_t transition_time
Encoded transition time value.
uint8_t delay
Encoded message execution delay in 5 millisecond steps.
uint8_t target_on_off
The target value of the Generic OnOff state (optional)
uint8_t present_on_off
The present value of the Generic OnOff state.
Message format for the generic_onoff Status message.