4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Ja-young Gu <jygu@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
23 * @ingroup TelephonyAPI
24 * @addtogroup POWER_TAPI POWER
27 * These APIs allow an application to accomplish the following services: @n
28 * - Process power command @n
29 * - Reset the phone power (on / off), @n
30 * - Process airplane mode @n
33 #ifndef _ITAPI_POWER_H_
34 #define _ITAPI_POWER_H_
36 #include <TelDefines.h>
37 #include <TelUtility.h>
46 * @brief This API is used to turn power off or on the modem.
48 * @par Sync (or) Async:
49 * This is a Synchronous API.
51 * @par Important Notes:
58 * - This index value is the power command as #tapi_power_phone_cmd_t.
63 * @par Async Response Message:
73 * @return Return Type (int) \n
74 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
75 * - Otherwise it provides an error code (Refer #TapiResult_t)
77 * @par Prospective Clients:
82 int tel_process_power_command(tapi_power_phone_cmd_t cmd);
86 * @brief This API is used to enter or leave airplane mode
88 * @par Sync (or) Async:
89 * This is a Asynchronous API.
91 * @par Important Notes:
98 * - This mode value is the flight flag #tapi_power_flight_mode_type_t.
103 * @par Async Response Message:
104 * The event associated is TAPI_EVENT_POWER_FLIGHT_MODE_RESP and the event data is #tapi_power_flight_mode_resp_type_t.
105 * Asynchronous return status is always TAPI_API_SUCCESS.
113 * @return Return Type (int) \n
114 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
115 * - Otherwise it provides an error code (Refer #TapiResult_t)
117 * @par Prospective Clients:
122 int tel_set_flight_mode(tapi_power_flight_mode_type_t mode);
126 * @brief This API is used to reset modem
128 * @par Sync (or) Async:
129 * This is a Synchronous API.
131 * @par Important Notes:
143 * @par Async Response Message:
153 * @return Return Type (int) \n
154 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
155 * - Otherwise it provides an error code (Refer #TapiResult_t)
157 * @par Prospective Clients:
162 int tel_reset_modem(void);
166 * @brief This API is used to get the ramdump file of modem. Modem's ramdump file is created under /opt/media/ramdump/
168 * @par Sync (or) Async:
169 * This is a Synchronous API.
171 * @par Important Notes:
183 * @par Async Response Message:
193 * @return Return Type (int) \n
194 * - TAPI_API_SUCCESS - indicating that the operation has completed successfully. \n
195 * - Otherwise it provides an error code (Refer #TapiResult_t)
197 * @par Prospective Clients:
202 int tel_enforce_ramdump_of_modem(void);
208 #endif /* _ITAPI_POWER_H_ */