4 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the License);
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #ifndef __DISPLAY_BACKLIGHT_H__
20 #define __DISPLAY_BACKLIGHT_H__
22 int display_backlight_get_max_brightness(int *max_brightness);
23 int display_backlight_get_normalized_brightness(int raw_brightness,
24 int *normalized_brightness);
25 int display_backlight_set_default_brightness(int brightness);
26 int display_backlight_get_default_brightness(int *brightness);
27 int display_backlight_update_by_default_brightness(void);
28 int display_backlight_set_brightness_by_dim_brightness(void);
29 void display_backlight_set_custom_status(bool on);
30 void display_backlight_get_custom_status(bool *on);
31 void display_backlight_set_custom_brightness(int brightness);
32 int display_backlight_update_by_custom_brightness(void);
33 int display_backlight_get_brightness_by_light_sensor(float lmax, float lmin,
34 float light, int *brightness);
35 void display_backlight_set_blink(int timeout);
36 void display_backlight_unset_blink(void);
37 int display_backlight_set_force_brightness(int brightness);
38 void display_backlight_get_force_brightness(int *brightness);
40 #endif /* __DISPLAY_BACKLIGHT_H__ */