Searched refs:range_min (Results 1 – 6 of 6) sorted by relevance
44 if (light > 0 && light < ctl->light->range_min) { in constrain_lightness()45 light = ctl->light->range_min; in constrain_lightness()57 ctl->light->target < ctl->light->range_min) { in constrain_target_lightness2()61 ctl->light->target = ctl->light->range_min; in constrain_target_lightness2()70 if (temp < ctl->temp->range_min) { in constrain_temperature()71 temp = ctl->temp->range_min; in constrain_temperature()85 tmp = (temp - ctl->temp->range_min) * UINT16_MAX; in light_ctl_temp_to_level()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()105 return (ctl->temp->range_min + tmp); in level_to_light_ctl_temp()
47 uint16_t range_min; member61 uint16_t range_min; member
197 } else if (light < ctl->light->range_min) { in level_move_lightness_work_handler()198 light = ctl->light->range_min; in level_move_lightness_work_handler()259 } else if (temp < ctl->temp->range_min) { in level_move_temp_work_handler()260 temp = ctl->temp->range_min; in level_move_temp_work_handler()
681 target = ctl->light->range_min; in gen_move_set_unack()756 target = ctl->light->range_min; in gen_move_set()1478 net_buf_simple_add_le16(msg, ctl->light->range_min); in light_lightness_range_get()1561 net_buf_simple_add_le16(msg, ctl->light->range_min); in light_lightness_range_publish()1586 if (ctl->light->range_min != min || in light_lightness_range_set_unack()1589 ctl->light->range_min = min; in light_lightness_range_set_unack()1620 if (ctl->light->range_min != min || in light_lightness_range_set()1623 ctl->light->range_min = min; in light_lightness_range_set()1938 net_buf_simple_add_le16(msg, ctl->temp->range_min); in light_ctl_temp_range_get()2064 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()