Zigbee Protocol Controller 1.6.0
attribute_timeouts.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
34#ifndef ATTRIBUTE_TIMEOUTS_H
35#define ATTRIBUTE_TIMEOUTS_H
36
37// Includes from other Unify components
38#include "sl_status.h"
39#include "attribute_store.h"
40
41// Contiki
42#include "clock.h"
43
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
82 clock_time_t duration,
83 attribute_timeout_callback_t callback_function);
84
95
107
114
120
121#ifdef __cplusplus
122}
123#endif
124
125#endif //ATTRIBUTE_TIMEOUTS_H
uint32_t clock_time_t
Definition: contiki-conf.h:31
datastore_attribute_id_t attribute_store_node_t
Handle to identify attribute store nodes.
Definition: attribute_store.h:101
bool attribute_timeout_is_callback_active(attribute_store_node_t node, attribute_timeout_callback_t callback_function)
Checks if a node/callback pair is active.
int attribute_timeouts_teardown()
Teardown the Unify attribute timeouts component.
sl_status_t attribute_timeout_cancel_callback(attribute_store_node_t node, attribute_timeout_callback_t callback_function)
Cancels a callback to be called after a duration for an attribute.
sl_status_t attribute_timeouts_init()
Initializes the Unify attribute timeouts component.
void(* attribute_timeout_callback_t)(attribute_store_node_t)
Function prototype callback functions.
Definition: attribute_timeouts.h:47
sl_status_t attribute_timeout_set_callback(attribute_store_node_t node, clock_time_t duration, attribute_timeout_callback_t callback_function)
Sets a callback to be called after a duration for an attribute.
uint32_t sl_status_t
Definition: sl_status.h:139
SL Status Codes.