Unify Framework Lib 1.7.0
attribute_transitions.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
26#ifndef ATTRIBUTE_TRANSITIONS_H
27#define ATTRIBUTE_TRANSITIONS_H
28
29// Includes from other Unify components
30#include "sl_status.h"
31#include "attribute_store.h"
32
33// Contiki
34#include "clock.h"
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
55 clock_time_t duration);
56
78 float target_value,
79 float step,
80 clock_time_t step_interval);
81
105 float target_value,
106 float step,
107 float min_value,
108 float max_value,
109 clock_time_t step_interval);
110
132 float step,
133 float min_value,
134 float max_value,
135 clock_time_t step_interval);
136
149
158
169
176
182
183#ifdef __cplusplus
184}
185#endif
186
187#endif //ATTRIBUTE_TRANSITIONS_H
uint32_t clock_time_t
Definition: contiki-conf.h:31
eval_result_type< T > max_value(std::vector< eval_result_type< T > > &results)
Find the max value of a set of expressions.
Definition: attribute_mapper_built_in_functions.cpp:67
eval_result_type< T > min_value(std::vector< eval_result_type< T > > &results)
Find the min value of a set of expressions.
Definition: attribute_mapper_built_in_functions.cpp:38
attribute_store_node_value_state_t
This is the value state of a value.
Definition: attribute_store.h:121
datastore_attribute_id_t attribute_store_node_t
Handle to identify attribute store nodes.
Definition: attribute_store.h:101
sl_status_t attribute_start_transition(attribute_store_node_t node, clock_time_t duration)
Starts a transition from the REPORTED to the DESIRED value of an attribute following the indicated du...
sl_status_t attribute_start_cyclic_transition(attribute_store_node_t node, attribute_store_node_value_state_t value_type, float step, float min_value, float max_value, clock_time_t step_interval)
Start attribute transition with a continuous step within cyclic range and interval.
sl_status_t attribute_start_fixed_cyclic_transition(attribute_store_node_t node, attribute_store_node_value_state_t value_type, float target_value, float step, float min_value, float max_value, clock_time_t step_interval)
Start attribute transition with a fixed step within cyclic range, target value and interval.
int attribute_transitions_teardown()
Teardown the Unify attribute transition component.
clock_time_t attribute_transition_get_remaining_duration(attribute_store_node_t node)
Retrieves the remaining time for a transition.
bool is_attribute_transition_ongoing(attribute_store_node_t node)
Verifies if a transition is ongoing for an attribute.
sl_status_t attribute_start_fixed_transition(attribute_store_node_t node, attribute_store_node_value_state_t value_type, float target_value, float step, clock_time_t step_interval)
Start attribute transition with a fixed step, target value and interval.
sl_status_t attribute_transitions_init()
Initializes the Unify attribute transition component.
sl_status_t attribute_stop_transition(attribute_store_node_t node)
Stops an ongoing transition for an attribute.
uint32_t sl_status_t
Definition: sl_status.h:139
SL Status Codes.