Searched refs:range_min (Results 1 – 6 of 6) sorted by relevance
45 if (light > 0 && light < ctl->light->range_min) { in constrain_lightness()46 light = ctl->light->range_min; in constrain_lightness()58 ctl->light->target < ctl->light->range_min) { in constrain_target_lightness2()62 ctl->light->target = ctl->light->range_min; in constrain_target_lightness2()71 if (temp < ctl->temp->range_min) { in constrain_temperature()72 temp = ctl->temp->range_min; in constrain_temperature()86 tmp = (temp - ctl->temp->range_min) * UINT16_MAX; in light_ctl_temp_to_level()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()106 return (ctl->temp->range_min + tmp); in level_to_light_ctl_temp()
47 uint16_t range_min; member61 uint16_t range_min; member
199 } else if (light < ctl->light->range_min) { in level_move_lightness_work_handler()200 light = ctl->light->range_min; in level_move_lightness_work_handler()261 } else if (temp < ctl->temp->range_min) { in level_move_temp_work_handler()262 temp = ctl->temp->range_min; in level_move_temp_work_handler()
683 target = ctl->light->range_min; in gen_move_set_unack()758 target = ctl->light->range_min; in gen_move_set()1480 net_buf_simple_add_le16(msg, ctl->light->range_min); in light_lightness_range_get()1563 net_buf_simple_add_le16(msg, ctl->light->range_min); in light_lightness_range_publish()1588 if (ctl->light->range_min != min || in light_lightness_range_set_unack()1591 ctl->light->range_min = min; in light_lightness_range_set_unack()1622 if (ctl->light->range_min != min || in light_lightness_range_set()1625 ctl->light->range_min = min; in light_lightness_range_set()1940 net_buf_simple_add_le16(msg, ctl->temp->range_min); in light_ctl_temp_range_get()2066 net_buf_simple_add_le16(msg, ctl->temp->range_min); in light_ctl_temp_range_publish()[all …]
26 ctl->light->range_min = LIGHTNESS_MIN; in light_default_var_init()32 ctl->temp->range_min = TEMP_MIN; in light_default_var_init()47 ctl->light->range_min = (uint16_t) ctl->light->range; in light_default_status_init()53 ctl->temp->range_min = (uint16_t) ctl->temp->range; in light_default_status_init()101 color = 100 * ((float) (ctl->temp->current - ctl->temp->range_min) / in update_led_gpio()102 (ctl->temp->range_max - ctl->temp->range_min)); in update_led_gpio()
63 ctl->light->range_min); in save_lightness_range()72 ctl->temp->range_min); in save_temperature_range()