Searched refs:range_max (Results 1 – 6 of 6) sorted by relevance
47 } 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()
48 uint16_t range_max; member62 uint16_t range_max; member
197 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()
685 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 …]
27 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()
62 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()