Home
last modified time | relevance | path

Searched refs:range_max (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/
Dstate_binding.c46 } else if (light > ctl->light->range_max) { in constrain_lightness()
47 light = ctl->light->range_max; in constrain_lightness()
63 } else if (ctl->light->target > ctl->light->range_max) { in constrain_target_lightness2()
64 ctl->light->target = ctl->light->range_max; in constrain_target_lightness2()
72 } else if (temp > ctl->temp->range_max) { in constrain_temperature()
73 temp = ctl->temp->range_max; in constrain_temperature()
87 tmp = tmp / (ctl->temp->range_max - ctl->temp->range_min); in light_ctl_temp_to_level()
100 diff = (float) (ctl->temp->range_max - ctl->temp->range_min) / in level_to_light_ctl_temp()
Ddevice_composition.h48 uint16_t range_max; member
62 uint16_t range_max; member
Dtransition.c195 if (light > ctl->light->range_max) { in level_move_lightness_work_handler()
196 light = ctl->light->range_max; in level_move_lightness_work_handler()
257 if (temp > ctl->temp->range_max) { in level_move_temp_work_handler()
258 temp = ctl->temp->range_max; in level_move_temp_work_handler()
Ddevice_composition.c683 target = ctl->light->range_max; in gen_move_set_unack()
758 target = ctl->light->range_max; in gen_move_set()
1479 net_buf_simple_add_le16(msg, ctl->light->range_max); in light_lightness_range_get()
1562 net_buf_simple_add_le16(msg, ctl->light->range_max); in light_lightness_range_publish()
1587 ctl->light->range_max != max) { in light_lightness_range_set_unack()
1590 ctl->light->range_max = max; in light_lightness_range_set_unack()
1621 ctl->light->range_max != max) { in light_lightness_range_set()
1624 ctl->light->range_max = max; in light_lightness_range_set()
1939 net_buf_simple_add_le16(msg, ctl->temp->range_max); in light_ctl_temp_range_get()
2065 net_buf_simple_add_le16(msg, ctl->temp->range_max); in light_ctl_temp_range_publish()
[all …]
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/
Dmain.c27 ctl->light->range_max = LIGHTNESS_MAX; in light_default_var_init()
33 ctl->temp->range_max = TEMP_MAX; in light_default_var_init()
46 ctl->light->range_max = (uint16_t) (ctl->light->range >> 16); in light_default_status_init()
52 ctl->temp->range_max = (uint16_t) (ctl->temp->range >> 16); in light_default_status_init()
102 (ctl->temp->range_max - ctl->temp->range_min)); in update_led_gpio()
Dstorage.c62 ctl->light->range = (uint32_t) ((ctl->light->range_max << 16) | in save_lightness_range()
71 ctl->temp->range = (uint32_t) ((ctl->temp->range_max << 16) | in save_temperature_range()