4 * Copyright (c) 2012 - 2013 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.
20 #ifndef __DD_DISPLAY_H__
21 #define __DD_DISPLAY_H__
29 * @ingroup DEVICED_LIBRARY
30 * @brief This file provides for control of display
33 #define LCD_NORMAL 0x1 /**< NORMAL state */
34 #define LCD_DIM 0x2 /**< LCD dimming state */
35 #define LCD_OFF 0x4 /**< LCD off state */
36 #define SUSPEND 0x8 /**< Sleep state */
37 #define POWER_OFF 0x16 /**< Sleep state */
38 #define SETALL (LCD_DIM | LCD_OFF | LCD_NORMAL) /*< select all state - not supported yet */
40 /* parameters for display_lock_state() */
41 #define STAY_CUR_STATE 0x1
42 #define GOTO_STATE_NOW 0x2
43 #define HOLD_KEY_BLOCK 0x4
44 #define STANDBY_MODE 0x8
46 /* paramters for display_unlock_state() */
47 #define PM_SLEEP_MARGIN 0x0 /**< keep guard time for unlock */
48 #define PM_RESET_TIMER 0x1 /**< reset timer for unlock */
49 #define PM_KEEP_TIMER 0x2 /**< keep timer for unlock */
51 /* parameter for display_set_timeout */
52 #define CUSTOM_TIMEOUT 0x1
54 int display_get_count(void);
55 int display_get_max_brightness(void);
56 int display_get_min_brightness(void);
57 int display_get_brightness(void);
58 int display_set_brightness_with_setting(int val);
59 int display_set_brightness(int val);
60 int display_release_brightness(void);
61 int display_get_acl_status(void);
62 int display_set_acl_status(int val);
63 int display_set_frame_rate(int val);
64 int display_lock_state(unsigned int, unsigned int, unsigned int);
65 int display_unlock_state(unsigned int, unsigned int);
66 int display_change_state(unsigned int);