nRF5 SDK for Thread and Zigbee v1.0.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Calendar cluster commands

Data Structures

struct  zb_zcl_calendar_get_calendar_payload_s
 
struct  zb_zcl_calendar_publish_calendar_payload_s
 
struct  zb_zcl_calendar_day_schedule_entries_s
 
struct  zb_zcl_calendar_publish_day_profile_payload_s
 
struct  zb_zcl_calendar_publish_week_profile_payload_s
 
struct  zb_zcl_calendar_season_entry_payload_s
 
struct  zb_zcl_calendar_publish_seasons_payload_s
 
struct  zb_zcl_calendar_cancel_calendar_payload_s
 
struct  zb_zcl_calendar_special_day_entry_s
 
struct  zb_zcl_calendar_publish_special_days_payload_s
 
struct  zb_zcl_calendar_get_day_profiles_payload_s
 
struct  zb_zcl_calendar_get_week_profiles_payload_s
 
struct  zb_zcl_calendar_get_seasons_payload_s
 
struct  zb_zcl_calendar_get_special_days_payload_s
 

Macros

#define ZB_ZCL_CALENDAR_CALENDAR_TYPE_IS_VALID(_t)   (_t <= ZB_ZCL_CALENDAR_TYPE_AUXILLARY_LOAD_SWITCH_CALENDAR)
 
#define ZB_ZCL_CALENDAR_GET_CALENDAR_PL_INIT   (zb_zcl_calendar_get_calendar_payload_t) {0}
 
#define ZB_ZCL_CALENDAR_GET_DAY_PROFILES_PL_INIT   (zb_zcl_calendar_get_day_profiles_payload_t) {0}
 
#define ZB_ZCL_CALENDAR_GET_WEEK_PROFILES_PL_INIT   (zb_zcl_calendar_get_week_profiles_payload_t) {0}
 
#define ZB_ZCL_CALENDAR_GET_SEASONS_PL_INIT   (zb_zcl_calendar_get_seasons_payload_t) {0}
 
#define ZB_ZCL_CALENDAR_GET_SPECIAL_DAYS_PL_INIT   (zb_zcl_calendar_get_special_days_payload_t) {0}
 
#define ZB_ZCL_CALENDAR_GET_CALENDAR_PL_SIZE_IS_VALID(size)   ((size == sizeof(zb_zcl_calendar_get_calendar_payload_t) ? ZB_TRUE : ZB_FALSE))
 
#define ZB_ZCL_CALENDAR_GET_DAY_PROFILES_PL_SIZE_IS_VALID(size)   ((size == sizeof(zb_zcl_calendar_get_day_profiles_payload_t) ? ZB_TRUE : ZB_FALSE))
 
#define ZB_ZCL_CALENDAR_GET_WEEK_PROFILES_PL_SIZE_IS_VALID(size)   ((size == sizeof(zb_zcl_calendar_get_week_profiles_payload_t) ? ZB_TRUE : ZB_FALSE))
 
#define ZB_ZCL_CALENDAR_GET_SEASONS_PL_SIZE_IS_VALID(size)   ((size == sizeof(zb_zcl_calendar_get_seasons_payload_t) ? ZB_TRUE : ZB_FALSE))
 
#define ZB_ZCL_CALENDAR_GET_SPECIAL_DAYS_PL_SIZE_IS_VALID(size)   ((size == sizeof(zb_zcl_calendar_get_special_days_payload_t) ? ZB_TRUE : ZB_FALSE))
 
#define ZB_ZCL_CALENDAR_PUBLISH_CALENDAR_PL_INIT   (zb_zcl_calendar_publish_calendar_payload_t) {0}
 
#define ZB_ZCL_CALENDAR_PUBLISH_DAY_PROFILE_PL_INIT   (zb_zcl_calendar_publish_day_profile_payload_t) {0}
 
#define ZB_ZCL_CALENDAR_PUBLISH_WEEK_PROFILE_PL_INIT   (zb_zcl_calendar_publish_week_profile_payload_t) {0}
 
#define ZB_ZCL_CALENDAR_PUBLISH_SEASONS_PL_INIT   (zb_zcl_calendar_publish_seasons_payload_t) {0}
 
#define ZB_ZCL_CALENDAR_PUBLISH_SPECIAL_DAYS_PL_INIT   (zb_zcl_calendar_publish_special_days_payload_t) {0}
 
#define ZB_ZCL_CALENDAR_CANCEL_CALENDAR_PL_INIT   (zb_zcl_calendar_cancel_calendar_payload_t) {0}
 
#define ZB_ZCL_CALENDAR_PUBLISH_CALENDAR_PL_EXPECTED_SIZE(pl)   (sizeof(zb_zcl_calendar_publish_calendar_payload_t)-sizeof((pl)->calendar_name)+1+ZB_ZCL_GET_STRING_LENGTH((pl)->calendar_name))
 
#define ZB_ZCL_CALENDAR_PUBLISH_CALENDAR_PL_SIZE_IS_VALID(pl, size)   ((size == ZB_ZCL_CALENDAR_PUBLISH_CALENDAR_PL_EXPECTED_SIZE(pl)) ? ZB_TRUE : ZB_FALSE)
 
#define ZB_ZCL_CALENDAR_PUBLISH_DAY_PROFILE_PL_SIZE_IS_VALID(size)   ((size >= (sizeof(zb_zcl_calendar_publish_day_profile_payload_t)-sizeof(zb_void_t *)-sizeof(zb_uint8_t)) ? ZB_TRUE : ZB_FALSE))
 
#define ZB_ZCL_CALENDAR_PUBLISH_WEEK_PROFILE_PL_SIZE_IS_VALID(size)   ((size == sizeof(zb_zcl_calendar_publish_week_profile_payload_t) ? ZB_TRUE : ZB_FALSE))
 
#define ZB_ZCL_CALENDAR_PUBLISH_SEASONS_PL_SIZE_IS_VALID(size)   ((size >= (sizeof(zb_zcl_calendar_publish_seasons_payload_t)-sizeof(zb_void_t *)-sizeof(zb_uint8_t)) ? ZB_TRUE : ZB_FALSE))
 
#define ZB_ZCL_CALENDAR_PUBLISH_SPECIAL_DAYS_PL_SIZE_IS_VALID(size)   ((size >= (sizeof(zb_zcl_calendar_publish_special_days_payload_t)-sizeof(zb_void_t *)-sizeof(zb_uint8_t)) ? ZB_TRUE : ZB_FALSE))
 
#define ZB_ZCL_CALENDAR_CANCEL_CALENDAR_PL_SIZE_IS_VALID(size)   ((size == sizeof(zb_zcl_calendar_cancel_calendar_payload_t) ? ZB_TRUE : ZB_FALSE))
 
#define ZB_ZCL_CALENDAR_SEND_CMD_PUBLISH_CALENDAR(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 
#define ZB_ZCL_CALENDAR_SEND_CMD_PUBLISH_DAY_PROFILE(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 
#define ZB_ZCL_CALENDAR_SEND_CMD_PUBLISH_WEEK_PROFILE(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 
#define ZB_ZCL_CALENDAR_SEND_CMD_PUBLISH_SEASONS(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 
#define ZB_ZCL_CALENDAR_SEND_CMD_PUBLISH_SPECIAL_DAYS(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 
#define ZB_ZCL_CALENDAR_SEND_CMD_CANCEL_CALENDAR(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 
#define ZB_ZCL_CALENDAR_SEND_CMD_GET_CALENDAR(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 
#define ZB_ZCL_CALENDAR_SEND_CMD_GET_DAY_PROFILES(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 
#define ZB_ZCL_CALENDAR_SEND_CMD_GET_WEEK_PROFILES(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 
#define ZB_ZCL_CALENDAR_SEND_CMD_GET_SEASONS(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 
#define ZB_ZCL_CALENDAR_SEND_CMD_GET_SPECIAL_DAYS(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 
#define ZB_ZCL_CALENDAR_SEND_CMD_GET_CALENDAR_CANCELLATION(_param, _dst_addr, _addr_mode,_dst_ep, _src_ep, _payload)
 

Typedefs

typedef enum
zb_zcl_calendar_cli_cmd_e 
zb_zcl_calendar_cli_cmd_t
 
typedef enum
zb_zcl_calendar_srv_cmd_e 
zb_zcl_calendar_srv_cmd_t
 
typedef enum
zb_zcl_calendar_calendar_type_e 
zb_zcl_calendar_calendar_type_t
 
typedef struct
zb_zcl_calendar_get_calendar_payload_s 
zb_zcl_calendar_get_calendar_payload_t
 
typedef enum
zb_zcl_calendar_calendar_time_reference_e 
zb_zcl_calendar_calendar_time_reference_t
 
typedef struct
zb_zcl_calendar_publish_calendar_payload_s 
zb_zcl_calendar_publish_calendar_payload_t
 
typedef struct
zb_zcl_calendar_day_schedule_entries_s 
zb_zcl_calendar_day_schedule_entries_t
 
typedef struct
zb_zcl_calendar_publish_day_profile_payload_s 
zb_zcl_calendar_publish_day_profile_payload_t
 
typedef struct
zb_zcl_calendar_publish_week_profile_payload_s 
zb_zcl_calendar_publish_week_profile_payload_t
 
typedef struct
zb_zcl_calendar_season_entry_payload_s 
zb_zcl_calendar_season_entry_payload_t
 
typedef struct
zb_zcl_calendar_publish_seasons_payload_s 
zb_zcl_calendar_publish_seasons_payload_t
 
typedef struct
zb_zcl_calendar_cancel_calendar_payload_s 
zb_zcl_calendar_cancel_calendar_payload_t
 
typedef struct
zb_zcl_calendar_special_day_entry_s 
zb_zcl_calendar_special_day_entry_t
 
typedef struct
zb_zcl_calendar_publish_special_days_payload_s 
zb_zcl_calendar_publish_special_days_payload_t
 
typedef struct
zb_zcl_calendar_get_day_profiles_payload_s 
zb_zcl_calendar_get_day_profiles_payload_t
 
typedef struct
zb_zcl_calendar_get_week_profiles_payload_s 
zb_zcl_calendar_get_week_profiles_payload_t
 
typedef struct
zb_zcl_calendar_get_seasons_payload_s 
zb_zcl_calendar_get_seasons_payload_t
 
typedef struct
zb_zcl_calendar_get_special_days_payload_s 
zb_zcl_calendar_get_special_days_payload_t
 

Enumerations

enum  zb_zcl_calendar_cli_cmd_e {
  ZB_ZCL_CALENDAR_CLI_CMD_GET_CALENDAR = 0x00, ZB_ZCL_CALENDAR_CLI_CMD_GET_DAY_PROFILES, ZB_ZCL_CALENDAR_CLI_CMD_GET_WEEK_PROFILES, ZB_ZCL_CALENDAR_CLI_CMD_GET_SEASONS,
  ZB_ZCL_CALENDAR_CLI_CMD_GET_SPECIAL_DAYS, ZB_ZCL_CALENDAR_CLI_CMD_GET_CALENDAR_CANCELLATION
}
 
enum  zb_zcl_calendar_srv_cmd_e {
  ZB_ZCL_CALENDAR_SRV_CMD_PUBLISH_CALENDAR = 0x00, ZB_ZCL_CALENDAR_SRV_CMD_PUBLISH_DAY_PROFILE, ZB_ZCL_CALENDAR_SRV_CMD_PUBLISH_WEEK_PROFILE, ZB_ZCL_CALENDAR_SRV_CMD_PUBLISH_SEASONS,
  ZB_ZCL_CALENDAR_SRV_CMD_PUBLISH_SPECIAL_DAYS, ZB_ZCL_CALENDAR_SRV_CMD_CANCEL_CALENDAR
}
 
enum  zb_zcl_calendar_calendar_type_e {
  ZB_ZCL_CALENDAR_TYPE_DELIVERED_CALENDAR = 0x00, ZB_ZCL_CALENDAR_TYPE_RECEIVED_CALENDAR = 0x01, ZB_ZCL_CALENDAR_TYPE_DELIVERED_AND_RECEIVED_CALENDAR = 0x02, ZB_ZCL_CALENDAR_TYPE_FRIENDLY_CREDIT_CALENDAR = 0x03,
  ZB_ZCL_CALENDAR_TYPE_AUXILLARY_LOAD_SWITCH_CALENDAR = 0x04
}
 
enum  zb_zcl_calendar_calendar_time_reference_e { ZB_ZCL_CALENDAR_TIME_REFERENCE_UTC_TIME = 0x00, ZB_ZCL_CALENDAR_TIME_REFERENCE_STANDARD_TIME, ZB_ZCL_CALENDAR_TIME_REFERENCE_LOCAL_TIME }
 

Functions

zb_void_t zb_zcl_calendar_send_cmd_publish_calendar (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_publish_calendar_payload_t *pl, zb_callback_t cb)
 
zb_void_t zb_zcl_calendar_send_cmd_publish_day_profile (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_publish_day_profile_payload_t *pl, zb_callback_t cb)
 
zb_void_t zb_zcl_calendar_send_cmd_publish_week_profile (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_publish_week_profile_payload_t *pl, zb_callback_t cb)
 
zb_void_t zb_zcl_calendar_send_cmd_publish_seasons (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_publish_seasons_payload_t *pl, zb_callback_t cb)
 
zb_void_t zb_zcl_calendar_send_cmd_publish_special_days (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_publish_special_days_payload_t *pl, zb_callback_t cb)
 
zb_void_t zb_zcl_calendar_send_cmd_get_calendar (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_get_calendar_payload_t *pl, zb_callback_t cb)
 
zb_void_t zb_zcl_calendar_send_cmd_get_day_profiles (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_get_day_profiles_payload_t *pl, zb_callback_t cb)
 
zb_void_t zb_zcl_calendar_send_cmd_get_week_profiles (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_get_week_profiles_payload_t *pl, zb_callback_t cb)
 
zb_void_t zb_zcl_calendar_send_cmd_get_seasons (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_get_seasons_payload_t *pl, zb_callback_t cb)
 
zb_void_t zb_zcl_calendar_send_cmd_get_special_days (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_get_special_days_payload_t *pl, zb_callback_t cb)
 
zb_void_t zb_zcl_calendar_send_cmd_get_calendar_cancellation (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, zb_callback_t cb)
 
zb_void_t zb_zcl_calendar_send_cmd_cancel_calendar (zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_cancel_calendar_payload_t *pl, zb_callback_t cb)
 

Detailed Description

Macro Definition Documentation

#define ZB_ZCL_CALENDAR_CALENDAR_TYPE_IS_VALID (   _t)    (_t <= ZB_ZCL_CALENDAR_TYPE_AUXILLARY_LOAD_SWITCH_CALENDAR)

Check if calendar type is valid

Parameters
_t- zb_zcl_calendar_get_calendar_payload_t::calendar_type field
See also
zb_zcl_calendar_get_calendar_payload_t
#define ZB_ZCL_CALENDAR_CANCEL_CALENDAR_PL_INIT   (zb_zcl_calendar_cancel_calendar_payload_t) {0}

Macro for initialization CancelCalendar command payload

#define ZB_ZCL_CALENDAR_CANCEL_CALENDAR_PL_SIZE_IS_VALID (   size)    ((size == sizeof(zb_zcl_calendar_cancel_calendar_payload_t) ? ZB_TRUE : ZB_FALSE))

Check if CancelCalendar command payload size is valid

Parameters
size- size of received data payload
#define ZB_ZCL_CALENDAR_GET_CALENDAR_PL_INIT   (zb_zcl_calendar_get_calendar_payload_t) {0}

Macro for initialization GetCalendar command payload

#define ZB_ZCL_CALENDAR_GET_CALENDAR_PL_SIZE_IS_VALID (   size)    ((size == sizeof(zb_zcl_calendar_get_calendar_payload_t) ? ZB_TRUE : ZB_FALSE))

Check if GetCalendar command payload size is valid

Parameters
size- size of received data payload
#define ZB_ZCL_CALENDAR_GET_DAY_PROFILES_PL_INIT   (zb_zcl_calendar_get_day_profiles_payload_t) {0}

Macro for initialization GetDayProfiles command payload

#define ZB_ZCL_CALENDAR_GET_DAY_PROFILES_PL_SIZE_IS_VALID (   size)    ((size == sizeof(zb_zcl_calendar_get_day_profiles_payload_t) ? ZB_TRUE : ZB_FALSE))

Check if GetDayProfiles command payload size is valid

Parameters
size- size of received data payload
#define ZB_ZCL_CALENDAR_GET_SEASONS_PL_INIT   (zb_zcl_calendar_get_seasons_payload_t) {0}

Macro for initialization GetSeasons command payload

#define ZB_ZCL_CALENDAR_GET_SEASONS_PL_SIZE_IS_VALID (   size)    ((size == sizeof(zb_zcl_calendar_get_seasons_payload_t) ? ZB_TRUE : ZB_FALSE))

Check if GetSeasons command payload size is valid

Parameters
size- size of received data payload
#define ZB_ZCL_CALENDAR_GET_SPECIAL_DAYS_PL_INIT   (zb_zcl_calendar_get_special_days_payload_t) {0}

Macro for initialization GetSpecialDays command payload

#define ZB_ZCL_CALENDAR_GET_SPECIAL_DAYS_PL_SIZE_IS_VALID (   size)    ((size == sizeof(zb_zcl_calendar_get_special_days_payload_t) ? ZB_TRUE : ZB_FALSE))

Check if GetSpecialDays command payload size is valid

Parameters
size- size of received data payload
#define ZB_ZCL_CALENDAR_GET_WEEK_PROFILES_PL_INIT   (zb_zcl_calendar_get_week_profiles_payload_t) {0}

Macro for initialization GetWeekProfiles command payload

#define ZB_ZCL_CALENDAR_GET_WEEK_PROFILES_PL_SIZE_IS_VALID (   size)    ((size == sizeof(zb_zcl_calendar_get_week_profiles_payload_t) ? ZB_TRUE : ZB_FALSE))

Check if GetWeekProfiles command payload size is valid

Parameters
size- size of received data payload
#define ZB_ZCL_CALENDAR_PUBLISH_CALENDAR_PL_EXPECTED_SIZE (   pl)    (sizeof(zb_zcl_calendar_publish_calendar_payload_t)-sizeof((pl)->calendar_name)+1+ZB_ZCL_GET_STRING_LENGTH((pl)->calendar_name))

Compute expected size of received zb_zcl_calendar_publish_calendar_payload_t data payload

Parameters
pl- pointer to zb_zcl_calendar_publish_calendar_payload_t payload
#define ZB_ZCL_CALENDAR_PUBLISH_CALENDAR_PL_INIT   (zb_zcl_calendar_publish_calendar_payload_t) {0}

Macro for initialization PublishCalendar command payload

#define ZB_ZCL_CALENDAR_PUBLISH_CALENDAR_PL_SIZE_IS_VALID (   pl,
  size 
)    ((size == ZB_ZCL_CALENDAR_PUBLISH_CALENDAR_PL_EXPECTED_SIZE(pl)) ? ZB_TRUE : ZB_FALSE)

Check if PublishCalendar command payload size is valid

Parameters
pl- pointer to zb_zcl_calendar_publish_calendar_payload_t payload (pointer to buffer beginning that contains zb_zcl_calendar_publish_calendar_payload_t data payload)
size- size of received data payload
#define ZB_ZCL_CALENDAR_PUBLISH_DAY_PROFILE_PL_INIT   (zb_zcl_calendar_publish_day_profile_payload_t) {0}

Macro for initialization PublishDayProfile command payload

#define ZB_ZCL_CALENDAR_PUBLISH_DAY_PROFILE_PL_SIZE_IS_VALID (   size)    ((size >= (sizeof(zb_zcl_calendar_publish_day_profile_payload_t)-sizeof(zb_void_t *)-sizeof(zb_uint8_t)) ? ZB_TRUE : ZB_FALSE))

Check if PublishDayProfile command payload size is valid

Parameters
size- size of received data payload
#define ZB_ZCL_CALENDAR_PUBLISH_SEASONS_PL_INIT   (zb_zcl_calendar_publish_seasons_payload_t) {0}

Macro for initialization PublishSeasons command payload

#define ZB_ZCL_CALENDAR_PUBLISH_SEASONS_PL_SIZE_IS_VALID (   size)    ((size >= (sizeof(zb_zcl_calendar_publish_seasons_payload_t)-sizeof(zb_void_t *)-sizeof(zb_uint8_t)) ? ZB_TRUE : ZB_FALSE))

Check if PublishSeasons command payload size is valid

Parameters
size- size of received data payload
#define ZB_ZCL_CALENDAR_PUBLISH_SPECIAL_DAYS_PL_INIT   (zb_zcl_calendar_publish_special_days_payload_t) {0}

Macro for initialization PublishSpecialDays command payload

#define ZB_ZCL_CALENDAR_PUBLISH_SPECIAL_DAYS_PL_SIZE_IS_VALID (   size)    ((size >= (sizeof(zb_zcl_calendar_publish_special_days_payload_t)-sizeof(zb_void_t *)-sizeof(zb_uint8_t)) ? ZB_TRUE : ZB_FALSE))

Check if PublishSpecialDays command payload size is valid

Parameters
size- size of received data payload
#define ZB_ZCL_CALENDAR_PUBLISH_WEEK_PROFILE_PL_INIT   (zb_zcl_calendar_publish_week_profile_payload_t) {0}

Macro for initialization PublishWeekProfile command payload

#define ZB_ZCL_CALENDAR_PUBLISH_WEEK_PROFILE_PL_SIZE_IS_VALID (   size)    ((size == sizeof(zb_zcl_calendar_publish_week_profile_payload_t) ? ZB_TRUE : ZB_FALSE))

Check if PublishWeekProfile command payload size is valid

Parameters
size- size of received data payload
#define ZB_ZCL_CALENDAR_SEND_CMD_CANCEL_CALENDAR (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
zb_zcl_calendar_send_cmd_cancel_calendar(_param, _dst_addr, _addr_mode, \
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_cancel_calendar(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_cancel_calendar_payload_t *pl, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_cancel_calendar function

#define ZB_ZCL_CALENDAR_SEND_CMD_GET_CALENDAR (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
zb_zcl_calendar_send_cmd_get_calendar(_param, _dst_addr, _addr_mode, \
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_get_calendar(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_get_calendar_payload_t *pl, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_get_calendar function

#define ZB_ZCL_CALENDAR_SEND_CMD_GET_CALENDAR_CANCELLATION (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_get_calendar_cancellation(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_get_calendar_cancellation function

#define ZB_ZCL_CALENDAR_SEND_CMD_GET_DAY_PROFILES (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
zb_zcl_calendar_send_cmd_get_day_profiles(_param, _dst_addr, _addr_mode, \
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_get_day_profiles(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_get_day_profiles_payload_t *pl, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_get_day_profiles function

#define ZB_ZCL_CALENDAR_SEND_CMD_GET_SEASONS (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
zb_zcl_calendar_send_cmd_get_seasons(_param, _dst_addr, _addr_mode, \
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_get_seasons(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_get_seasons_payload_t *pl, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_get_seasons function

#define ZB_ZCL_CALENDAR_SEND_CMD_GET_SPECIAL_DAYS (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
zb_zcl_calendar_send_cmd_get_special_days(_param, _dst_addr, _addr_mode, \
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_get_special_days(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_get_special_days_payload_t *pl, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_get_special_days function

#define ZB_ZCL_CALENDAR_SEND_CMD_GET_WEEK_PROFILES (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
zb_zcl_calendar_send_cmd_get_week_profiles(_param, _dst_addr, _addr_mode, \
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_get_week_profiles(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_get_week_profiles_payload_t *pl, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_get_week_profiles function

#define ZB_ZCL_CALENDAR_SEND_CMD_PUBLISH_CALENDAR (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
zb_zcl_calendar_send_cmd_publish_calendar(_param, _dst_addr, _addr_mode, \
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_publish_calendar(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_publish_calendar_payload_t *pl, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_publish_calendar function

#define ZB_ZCL_CALENDAR_SEND_CMD_PUBLISH_DAY_PROFILE (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
zb_zcl_calendar_send_cmd_publish_day_profile(_param, _dst_addr, _addr_mode, \
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_publish_day_profile(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_publish_day_profile_payload_t *pl, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_publish_day_profile function

#define ZB_ZCL_CALENDAR_SEND_CMD_PUBLISH_SEASONS (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
zb_zcl_calendar_send_cmd_publish_seasons(_param, _dst_addr, _addr_mode, \
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_publish_seasons(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_publish_seasons_payload_t *pl, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_publish_seasons function

#define ZB_ZCL_CALENDAR_SEND_CMD_PUBLISH_SPECIAL_DAYS (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
zb_zcl_calendar_send_cmd_publish_special_days(_param, _dst_addr, _addr_mode, \
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_publish_special_days(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_publish_special_days_payload_t *pl, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_publish_special_days function

#define ZB_ZCL_CALENDAR_SEND_CMD_PUBLISH_WEEK_PROFILE (   _param,
  _dst_addr,
  _addr_mode,
  _dst_ep,
  _src_ep,
  _payload 
)
Value:
zb_zcl_calendar_send_cmd_publish_week_profile(_param, _dst_addr, _addr_mode, \
_dst_ep, _src_ep, _payload, NULL)
zb_void_t zb_zcl_calendar_send_cmd_publish_week_profile(zb_uint8_t param, const zb_addr_u *dst_addr, enum zb_aps_addr_mode_e dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_calendar_publish_week_profile_payload_t *pl, zb_callback_t cb)

Macro for call zb_zcl_calendar_send_cmd_publish_week_profile function

Typedef Documentation

This enumeration presents possible values of Calendar Time Reference field

See also
SE spec, Table D-160 and zb_zcl_calendar_publish_calendar_payload_t::calendar_time_reference

Calendar type enumeration.

See also
SE spec, Table D-159

CancelCalendar command payload.

See also
SE spec, subclause D.9.2.3.6

Calendar cluster client command identifiers.

See also
SE spec, subclause D.9.2.4

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.

See also
SE spec, subclause D.9.2.3.2.3
zb_zcl_calendar_publish_day_profile_payload_t::day_schedule_entries

GetCalendar command payload

See also
SE spec, subclause 9.2.4.1

GetDayProfiles command payload

See also
SE spec, subclause D.9.2.4.2

GetSeasons command payload. Figure D-152 - GetSeasons Command Payload

GetSpecialDays command payload

See also
SE spec and Figure D-153 - GetSpecialDays Command Payload

GetWeekProfiles command payload.

See also
SE spec, Figure D-151 - GetWeekProfiles Command Payload

PublishDayProfile command payload.

See also
SE spec, subclause D.9.2.3.2.2

PublishSeasons command payload.

See also
SE spec, subclause D.9.2.3.4.1

PublishWeekProfile command payload

See also
SE spec, subclause D.9.2.3.3.2 and Figure D-143 - PublishWeekProfile Command Payload

Season Entry payload A Season Entry consists of a Season Start Date and the reference (Week ID Ref) to the related Week Profile entry. The Start Date of the Season Entries must be arranged in ascending order. The active season is valid until the Season Start Date of the next Season Entry.

See also
SE spec, Figure D-145 - Season Entry Sub-Payload
zb_zcl_calendar_publish_seasons_payload_t::season_entry

Special Day Entry A SpecialDayEntry consists of the Special Day Date and a reference (Day ID Ref) to the related Day Profile entry. The dates of the Special Day Table must be arranged in ascending order.

See also
SE spec, Figure D-147 - SpecialDayEntry Sub-Payload
zb_zcl_calendar_publish_special_days_payload_t::special_day_entry
See also
SE spec, Table D-158 - Commands Generated by the Calendar Cluster Server

Enumeration Type Documentation

This enumeration presents possible values of Calendar Time Reference field

See also
SE spec, Table D-160 and zb_zcl_calendar_publish_calendar_payload_t::calendar_time_reference
Enumerator
ZB_ZCL_CALENDAR_TIME_REFERENCE_UTC_TIME 

UTC time

ZB_ZCL_CALENDAR_TIME_REFERENCE_STANDARD_TIME 

Standard time

ZB_ZCL_CALENDAR_TIME_REFERENCE_LOCAL_TIME 

Local time

Calendar type enumeration.

See also
SE spec, Table D-159
Enumerator
ZB_ZCL_CALENDAR_TYPE_DELIVERED_CALENDAR 

Delivered Calendar

ZB_ZCL_CALENDAR_TYPE_RECEIVED_CALENDAR 

Received Calendar

ZB_ZCL_CALENDAR_TYPE_DELIVERED_AND_RECEIVED_CALENDAR 

Delivered and Received Calendar

ZB_ZCL_CALENDAR_TYPE_FRIENDLY_CREDIT_CALENDAR 

Friendly Credit Calendar

ZB_ZCL_CALENDAR_TYPE_AUXILLARY_LOAD_SWITCH_CALENDAR 

Auxillary Load Switch Calendar

Calendar cluster client command identifiers.

See also
SE spec, subclause D.9.2.4
Enumerator
ZB_ZCL_CALENDAR_CLI_CMD_GET_CALENDAR 

This command initiates PublishCalendar command(s) for scheduled Calendar updates.

See also
zb_zcl_calendar_get_calendar_payload_t
ZB_ZCL_CALENDAR_CLI_CMD_GET_DAY_PROFILES 

This command initiates one or more PublishDayProfile commands for the referenced Calendar.

See also
zb_zcl_calendar_get_day_profiles_payload_t
ZB_ZCL_CALENDAR_CLI_CMD_GET_WEEK_PROFILES 

This command initiates one or more PublishWeekProfile commands for the referenced Calendar.

See also
zb_zcl_calendar_get_week_profiles_payload_t
ZB_ZCL_CALENDAR_CLI_CMD_GET_SEASONS 

This command initiates one or more PublishSeasons commands for the referenced Calendar.

See also
zb_zcl_calendar_get_seasons_payload_t
ZB_ZCL_CALENDAR_CLI_CMD_GET_SPECIAL_DAYS 

This command initiates one or more PublishSpecialDays commands for the scheduled Special Day Table updates.

See also
zb_zcl_calendar_get_special_days_payload_t
ZB_ZCL_CALENDAR_CLI_CMD_GET_CALENDAR_CANCELLATION 

This command initiates the return of the last CancelCalendar command held on the associated server.

Note
This command has no payload.
See also
SE spec, Table D-158 - Commands Generated by the Calendar Cluster Server
Enumerator
ZB_ZCL_CALENDAR_SRV_CMD_PUBLISH_CALENDAR 

The PublishCalendar command is published in response to a GetCalendar command or if new calendar information is available. The Calendar must be replaced as a whole; only the Special Day Table can be changed independently.

See also
zb_zcl_calendar_publish_calendar_payload_t
ZB_ZCL_CALENDAR_SRV_CMD_PUBLISH_DAY_PROFILE 

The PublishDayProfile command is published in response to a GetDayProfile command. If the IssuerCalendarID does not match with one of the stored calendar instances, the client shall ignore the command and respond using ZCL Default Response with a status response of NOT_FOUND.

See also
zb_zcl_calendar_publish_day_profile_payload_t
ZB_ZCL_CALENDAR_SRV_CMD_PUBLISH_WEEK_PROFILE 

The PublishWeekProfile command is published in response to a GetWeekProfile command. If the IssuerCalendarID does not match with one of the stored calendar instances, the client shall ignore the command and respond using ZCL Default Response with a status response of NOT_FOUND.

See also
zb_zcl_calendar_publish_week_profile_payload_t
ZB_ZCL_CALENDAR_SRV_CMD_PUBLISH_SEASONS 

The PublishSeasons command is published in response to a GetSeason command. If the IssuerCalendarID does not match with one of the stored calendar instances, the client shall ignore the command and respond using ZCL Default Response with a status response of NOT_FOUND.

See also
zb_zcl_calendar_publish_seasons_payload_t
ZB_ZCL_CALENDAR_SRV_CMD_PUBLISH_SPECIAL_DAYS 

The PublishSpecialDays command is published in response to a GetSpecialDays command or if a calendar update is available. If the Calendar Type does not match with one of the stored calendar instances, the client shall ignore the command and respond using ZCL Default Response with a status response of NOT_FOUND.

See also
zb_zcl_calendar_publish_special_days_payload_t
ZB_ZCL_CALENDAR_SRV_CMD_CANCEL_CALENDAR 

The CancelCalendar command indicates that all data associated with a particular calendar instance should be discarded.

See also
zb_zcl_calendar_cancel_calendar_payload_t

Function Documentation

zb_void_t zb_zcl_calendar_send_cmd_cancel_calendar ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
const zb_zcl_calendar_cancel_calendar_payload_t pl,
zb_callback_t  cb 
)

Function for send CancelCalendar command. On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_CANCEL_CALENDAR_CB_ID

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dst_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
pl- Packet payload (ref to zb_zcl_calendar_cancel_calendar_payload_t).
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Example of sending CancelCalendar command
zb_void_t zb_zcl_calendar_send_cmd_get_calendar ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
const zb_zcl_calendar_get_calendar_payload_t pl,
zb_callback_t  cb 
)

Function for send GetCalendar command. On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_GET_CALENDAR_CB_ID

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dst_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
pl- Packet payload (ref to zb_zcl_calendar_get_calendar_payload_t).
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Example of sending GetCalendar command
zb_void_t zb_zcl_calendar_send_cmd_get_calendar_cancellation ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
zb_callback_t  cb 
)

Function for send GetCalendarCancellation command. On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_GET_CALENDAR_CANCELLATION_CB_ID

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dst_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Example of sending GetCalendarCancellation command
zb_void_t zb_zcl_calendar_send_cmd_get_day_profiles ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
const zb_zcl_calendar_get_day_profiles_payload_t pl,
zb_callback_t  cb 
)

Function for send GetDayProfiles command. On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_GET_DAY_PROFILES_CB_ID

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dst_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
pl- Packet payload (ref to zb_zcl_calendar_get_day_profiles_payload_t).
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Example of sending GetDayProfiles command
zb_void_t zb_zcl_calendar_send_cmd_get_seasons ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
const zb_zcl_calendar_get_seasons_payload_t pl,
zb_callback_t  cb 
)

Function for send GetSeasons command. On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_GET_SEASONS_CB_ID

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dsr_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
pl- Packet payload (ref to zb_zcl_calendar_get_seasons_payload_t).
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Example of sending GetSeasons command
zb_void_t zb_zcl_calendar_send_cmd_get_special_days ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
const zb_zcl_calendar_get_special_days_payload_t pl,
zb_callback_t  cb 
)

Function for send GetSpecialDays command. On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_GET_SPECIAL_DAYS_CB_ID

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dst_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
pl- Packet payload (ref to zb_zcl_calendar_get_special_days_payload_t).
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Example of sending GetSpecialDays command
zb_void_t zb_zcl_calendar_send_cmd_get_week_profiles ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
const zb_zcl_calendar_get_week_profiles_payload_t pl,
zb_callback_t  cb 
)

Function for send GetWeekProfiles command. On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_GET_WEEK_PROFILES_CB_ID

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dst_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
pl- Packet payload (ref to zb_zcl_calendar_get_week_profiles_payload_t).
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Example of sending GetWeekProfiles command
zb_void_t zb_zcl_calendar_send_cmd_publish_calendar ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
const zb_zcl_calendar_publish_calendar_payload_t pl,
zb_callback_t  cb 
)

Function for send PublishCalendar command. On sender's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_GET_CALENDAR_CB_ID callback id on reception of GetCalendar command.
On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_PUBLISH_CALENDAR_CB_ID.

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dst_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
pl- Packet payload (ref to zb_zcl_calendar_publish_calendar_payload_t).
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Handle GetCalendar command

Example of sending PublishCalendar command
zb_void_t zb_zcl_calendar_send_cmd_publish_day_profile ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
const zb_zcl_calendar_publish_day_profile_payload_t pl,
zb_callback_t  cb 
)

Function for send PublishDayProfile command. On sender's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_GET_DAY_PROFILES_CB_ID callback id on reception of GetDayProfiles command.
On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_PUBLISH_DAY_PROFILE_CB_ID

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dst_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
pl- Packet payload (ref to zb_zcl_calendar_publish_day_profile_payload_t).
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Handle GetDayProfiles command

Example of sending PublishWeekProfile command
zb_void_t zb_zcl_calendar_send_cmd_publish_seasons ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
const zb_zcl_calendar_publish_seasons_payload_t pl,
zb_callback_t  cb 
)

Function for send PublishSeasons command. On sender's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_GET_SEASONS_CB_ID callback id on reception of GetSeasons command.
On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_PUBLISH_SEASONS_CB_ID

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dst_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
pl- Packet payload (ref to zb_zcl_calendar_publish_seasons_payload_t).
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Handle GetSeasons command
zb_void_t zb_zcl_calendar_send_cmd_publish_special_days ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
const zb_zcl_calendar_publish_special_days_payload_t pl,
zb_callback_t  cb 
)

Function for send PublishSpecialDays command. On sender's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_GET_SPECIAL_DAYS_CB_ID callback id on reception of GetSpecialDays command.
On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_PUBLISH_SPECIAL_DAYS_CB_ID

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dst_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
pl- Packet payload (ref to zb_zcl_calendar_publish_special_days_payload_t).
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Handle GetSpecialDays command
zb_void_t zb_zcl_calendar_send_cmd_publish_week_profile ( zb_uint8_t  param,
const zb_addr_u dst_addr,
enum zb_aps_addr_mode_e  dst_addr_mode,
zb_uint8_t  dst_ep,
zb_uint8_t  src_ep,
const zb_zcl_calendar_publish_week_profile_payload_t pl,
zb_callback_t  cb 
)

Function for send PublishWeekProfile command. On sender's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_GET_WEEK_PROFILES_CB_ID callback id on reception of GetWeekProfiles command.
On receiver's side callback ZB_ZCL_DEVICE_CB will be called with ZB_ZCL_CALENDAR_PUBLISH_WEEK_PROFILE_CB_ID

Parameters
param- Reference to buffer.
dst_addr- Address of the device to send command to.
dst_addr_mode- Address mode for dst_addr.
dst_ep- Destination endpoint.
src_ep- Current endpoint.
pl- Packet payload (ref to zb_zcl_calendar_publish_week_profile_payload_t).
cb- Callback which should be called when the ZCL stack receives APS ack.
Usage

Handle GetWeekProfiles command

Example of sending PublishWeekProfile command