Zigbee Protocol Controller 1.6.0
unify_dotdot_attribute_store_command_callbacks_on_off.c File Reference

Macros

#define LOG_TAG   "unify_dotdot_attribute_store_on_off_commands_callbacks"
 
#define ACCEPT_ONLY_WHEN_ON_MASK   1
 

Functions

static void update_current_level_attribute_after_on_command (const dotdot_unid_t unid, const dotdot_endpoint_id_t endpoint)
 Updates the desired value of the CurrentLevel attribute if supported when we receive an On Command. More...
 
static void update_current_level_attribute_after_off_command (const dotdot_unid_t unid, const dotdot_endpoint_id_t endpoint)
 
sl_status_t on_off_cluster_on_command (const dotdot_unid_t unid, const dotdot_endpoint_id_t endpoint, uic_mqtt_dotdot_callback_call_type_t callback_type)
 
sl_status_t on_off_cluster_off_command (const dotdot_unid_t unid, const dotdot_endpoint_id_t endpoint, uic_mqtt_dotdot_callback_call_type_t callback_type)
 
sl_status_t on_off_cluster_toggle_command (const dotdot_unid_t unid, const dotdot_endpoint_id_t endpoint, uic_mqtt_dotdot_callback_call_type_t callback_type)
 
sl_status_t on_off_cluster_off_with_effect_command (dotdot_unid_t unid, dotdot_endpoint_id_t endpoint, uic_mqtt_dotdot_callback_call_type_t call_type, OffWithEffectEffectIdentifier effect_identifier, uint8_t effect_variant)
 
sl_status_t on_off_cluster_off_with_recall_global_scene_command (dotdot_unid_t unid, dotdot_endpoint_id_t endpoint, uic_mqtt_dotdot_callback_call_type_t call_type)
 
static void on_off_on_with_timed_off_timeout (attribute_store_node_t endpoint_node)
 
sl_status_t on_off_on_with_timed_off_callback_set_command (dotdot_unid_t unid, dotdot_endpoint_id_t endpoint, uic_mqtt_dotdot_callback_call_type_t call_type, uint8_t on_off_control, uint16_t on_time, uint16_t off_wait_time)
 
sl_status_t on_off_cluster_mapper_init ()
 Intitialise the On Off cluster mapper. More...
 

Macro Definition Documentation

◆ ACCEPT_ONLY_WHEN_ON_MASK

#define ACCEPT_ONLY_WHEN_ON_MASK   1

◆ LOG_TAG

#define LOG_TAG   "unify_dotdot_attribute_store_on_off_commands_callbacks"

Function Documentation

◆ on_off_cluster_off_command()

sl_status_t on_off_cluster_off_command ( const dotdot_unid_t  unid,
const dotdot_endpoint_id_t  endpoint,
uic_mqtt_dotdot_callback_call_type_t  callback_type 
)

◆ on_off_cluster_off_with_effect_command()

sl_status_t on_off_cluster_off_with_effect_command ( dotdot_unid_t  unid,
dotdot_endpoint_id_t  endpoint,
uic_mqtt_dotdot_callback_call_type_t  call_type,
OffWithEffectEffectIdentifier  effect_identifier,
uint8_t  effect_variant 
)

FIXME this is not quite right

◆ on_off_cluster_off_with_recall_global_scene_command()

sl_status_t on_off_cluster_off_with_recall_global_scene_command ( dotdot_unid_t  unid,
dotdot_endpoint_id_t  endpoint,
uic_mqtt_dotdot_callback_call_type_t  call_type 
)

◆ on_off_cluster_on_command()

sl_status_t on_off_cluster_on_command ( const dotdot_unid_t  unid,
const dotdot_endpoint_id_t  endpoint,
uic_mqtt_dotdot_callback_call_type_t  callback_type 
)

◆ on_off_cluster_toggle_command()

sl_status_t on_off_cluster_toggle_command ( const dotdot_unid_t  unid,
const dotdot_endpoint_id_t  endpoint,
uic_mqtt_dotdot_callback_call_type_t  callback_type 
)

◆ on_off_on_with_timed_off_callback_set_command()

sl_status_t on_off_on_with_timed_off_callback_set_command ( dotdot_unid_t  unid,
dotdot_endpoint_id_t  endpoint,
uic_mqtt_dotdot_callback_call_type_t  call_type,
uint8_t  on_off_control,
uint16_t  on_time,
uint16_t  off_wait_time 
)

◆ on_off_on_with_timed_off_timeout()

static void on_off_on_with_timed_off_timeout ( attribute_store_node_t  endpoint_node)
static

◆ update_current_level_attribute_after_off_command()

static void update_current_level_attribute_after_off_command ( const dotdot_unid_t  unid,
const dotdot_endpoint_id_t  endpoint 
)
static

◆ update_current_level_attribute_after_on_command()

static void update_current_level_attribute_after_on_command ( const dotdot_unid_t  unid,
const dotdot_endpoint_id_t  endpoint 
)
static

Updates the desired value of the CurrentLevel attribute if supported when we receive an On Command.

Parameters
unidUNID for which the CurrentLevel desired value is to be adjusted
endpointEndpoint for which the CurrentLevel desired value is to be adjusted