![]() |
nRF5 SDK for Thread and Zigbee v1.0.0
|
#include <zb_zcl_calendar.h>
Data Fields | |
zb_uint16_t | start_time |
union { | |
zb_uint8_t price_tier | |
zb_uint8_t friendly_credit_enable | |
zb_uint8_t auxiliary_load_switch_state | |
} | u |
The format of Day Schedule entries is dependent on the Calendar Type (zb_zcl_calendar_calendar_type_t). If the Calendar Type is 0x00 – 0x02 then Rate Start Times shall be used. If the value is 0x03 then the Friendly Credit Start Times shall be used. If the value is 0x04 then the Auxiliary Load Start Times shall be used. A value other than these would be invalid.
zb_uint16_t zb_zcl_calendar_day_schedule_entries_s::start_time |
The Start Time is represented in minutes from midnight. ScheduleEntries must be arranged in ascending order of Start Times. The first Schedule Entry must have 0x0000 (midnight) as the StartTime
union { ... } zb_zcl_calendar_day_schedule_entries_s::u |
Price Tier is the current price tier that is valid until the start time of the next Schedule Entry. The Friendly Credit Enable field is a Boolean denoting if the Friendly Credit period is available for the consumer to use. A value of 1 means it is enabled and a 0 means that the Friendly Credit period is not available for the consumer to use.
The required status of the auxiliary switches is indicated by the state of the Auxiliary Load Switch State bits. Bit0 corresponds to Auxiliary Switch 1 and bit7 corresponds to Auxiliary Switch 8. A bit set to "1" indicates an ON state and a bit set to "0" indicates an OFF state.