Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/
Dstate_binding.c47 } else if (light > ctl->light->range_max) { in constrain_lightness()
48 light = ctl->light->range_max; in constrain_lightness()
64 } else if (ctl->light->target > ctl->light->range_max) { in constrain_target_lightness2()
65 ctl->light->target = ctl->light->range_max; in constrain_target_lightness2()
73 } else if (temp > ctl->temp->range_max) { in constrain_temperature()
74 temp = ctl->temp->range_max; in constrain_temperature()
88 tmp = tmp / (ctl->temp->range_max - ctl->temp->range_min); in light_ctl_temp_to_level()
101 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.c197 if (light > ctl->light->range_max) { in level_move_lightness_work_handler()
198 light = ctl->light->range_max; in level_move_lightness_work_handler()
259 if (temp > ctl->temp->range_max) { in level_move_temp_work_handler()
260 temp = ctl->temp->range_max; in level_move_temp_work_handler()
Ddevice_composition.c685 target = ctl->light->range_max; in gen_move_set_unack()
760 target = ctl->light->range_max; in gen_move_set()
1481 net_buf_simple_add_le16(msg, ctl->light->range_max); in light_lightness_range_get()
1564 net_buf_simple_add_le16(msg, ctl->light->range_max); in light_lightness_range_publish()
1589 ctl->light->range_max != max) { in light_lightness_range_set_unack()
1592 ctl->light->range_max = max; in light_lightness_range_set_unack()
1623 ctl->light->range_max != max) { in light_lightness_range_set()
1626 ctl->light->range_max = max; in light_lightness_range_set()
1941 net_buf_simple_add_le16(msg, ctl->temp->range_max); in light_ctl_temp_range_get()
2067 net_buf_simple_add_le16(msg, ctl->temp->range_max); in light_ctl_temp_range_publish()
[all …]
/Zephyr-Core-3.7.0/samples/boards/nrf/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()