![]() |
nRF5 SDK for Thread and Zigbee v1.0.0
|
#define ZB_ZCL_CALENDAR_CALENDAR_TYPE_IS_VALID | ( | _t | ) | (_t <= ZB_ZCL_CALENDAR_TYPE_AUXILLARY_LOAD_SWITCH_CALENDAR) |
Check if calendar type is valid
_t | - zb_zcl_calendar_get_calendar_payload_t::calendar_type field |
#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
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
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
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
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
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
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
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
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
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
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
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
size | - size of received data payload |
#define ZB_ZCL_CALENDAR_SEND_CMD_CANCEL_CALENDAR | ( | _param, | |
_dst_addr, | |||
_addr_mode, | |||
_dst_ep, | |||
_src_ep, | |||
_payload | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
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 | |||
) |
Macro for call zb_zcl_calendar_send_cmd_publish_week_profile function
This enumeration presents possible values of Calendar Time Reference field
Calendar type enumeration.
CancelCalendar command payload.
typedef enum zb_zcl_calendar_cli_cmd_e zb_zcl_calendar_cli_cmd_t |
Calendar cluster client command identifiers.
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.
GetCalendar command payload
typedef struct zb_zcl_calendar_get_day_profiles_payload_s zb_zcl_calendar_get_day_profiles_payload_t |
GetDayProfiles command payload
GetSeasons command payload. Figure D-152 - GetSeasons Command Payload
typedef struct zb_zcl_calendar_get_special_days_payload_s zb_zcl_calendar_get_special_days_payload_t |
GetSpecialDays command payload
typedef struct zb_zcl_calendar_get_week_profiles_payload_s zb_zcl_calendar_get_week_profiles_payload_t |
GetWeekProfiles command payload.
typedef struct zb_zcl_calendar_publish_calendar_payload_s zb_zcl_calendar_publish_calendar_payload_t |
PublishCalendar command
typedef struct zb_zcl_calendar_publish_day_profile_payload_s zb_zcl_calendar_publish_day_profile_payload_t |
PublishDayProfile command payload.
PublishSeasons command payload.
typedef struct zb_zcl_calendar_publish_special_days_payload_s zb_zcl_calendar_publish_special_days_payload_t |
PublishSpecialDays command payload.
typedef struct zb_zcl_calendar_publish_week_profile_payload_s zb_zcl_calendar_publish_week_profile_payload_t |
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.
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.
typedef enum zb_zcl_calendar_srv_cmd_e zb_zcl_calendar_srv_cmd_t |
This enumeration presents possible values of Calendar Time Reference field
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.
Calendar cluster client command identifiers.
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
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. |
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
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. |
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
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. |
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
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. |
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
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. |
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
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. |
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
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. |
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.
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. |
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
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. |
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
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. |
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
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. |
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
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. |