4 * Copyright (c) 2012 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 SAP_TAPI SAP
29 @brief This file serves as a "C" header file defines functions for Tapi SAP Services.\n
30 It contains a sample set of function prototypes that would be required by applications.
37 #include <tapi_common.h>
40 #include <TelDefines.h>
48 * @brief This API is used to request to connect sap.
50 * @par Sync (or) Async:
51 * This is an Asynchronous API.
53 * @par Important Notes:
60 * - handle from tel_init().
62 * @param[in] max_msg_size
64 * @param [in] callback
65 * - To register callback function for result.
67 * @param [in] user_data
68 * - user_data for user specification.
76 * @return Return Type (int) \n
77 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
78 * - Negative integer : it provides an error code (Refer #TapiResult_t)
80 * @par Prospective Clients:
92 /*================================================================================================*/
93 int tel_req_sap_connect(TapiHandle *handle, int max_msg_size, tapi_response_cb callback, void *user_data);
96 * @brief This API is used to request sap to disconnect sap.
98 * @par Sync (or) Async:
99 * This is an Asynchronous API.
101 * @par Important Notes:
108 * - handle from tel_init().
110 * @param [in] callback
111 * - To register callback function for result.
113 * @param [in] user_data
114 * - user_data for user specification.
122 * @return Return Type (int) \n
123 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
124 * - Negative integer : it provides an error code (Refer #TapiResult_t)
126 * @par Prospective Clients:
138 /*================================================================================================*/
139 int tel_req_sap_disconnect(TapiHandle *handle, tapi_response_cb callback, void *user_data);
142 * @brief This API is used to request sap connection status.
144 * @par Sync (or) Async:
145 * This is an Asynchronous API.
147 * @par Important Notes:
154 * - handle from tel_init().
156 * @param [in] callback
157 * - To register callback function for result.
159 * @param [in] user_data
160 * - user_data for user specification.
168 * @return Return Type (int) \n
169 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
170 * - Negative integer : it provides an error code (Refer #TapiResult_t)
172 * @par Prospective Clients:
184 /*================================================================================================*/
185 int tel_req_sap_connection_status(TapiHandle *handle, tapi_response_cb callback, void *user_data);
188 * @brief This API is used to request to get atr.
190 * @par Sync (or) Async:
191 * This is an Asynchronous API.
193 * @par Important Notes:
200 * - handle from tel_init().
202 * @param [in] callback
203 * - To register callback function for result.
205 * @param [in] user_data
206 * - user_data for user specification.
214 * @return Return Type (int) \n
215 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
216 * - Negative integer : it provides an error code (Refer #TapiResult_t)
218 * @par Prospective Clients:
230 /*================================================================================================*/
231 int tel_req_sap_transfer_atr(TapiHandle *handle, tapi_response_cb callback, void *user_data);
234 * @brief This API is used to request to transfer apdu.
236 * @par Sync (or) Async:
237 * This is an Asynchronous API.
239 * @par Important Notes:
246 * - handle from tel_init().
248 * @param [in] apdu_data
250 * @param [in] callback
251 * - To register callback function for result.
253 * @param [in] user_data
254 * - user_data for user specification.
262 * @return Return Type (int) \n
263 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
264 * - Negative integer : it provides an error code (Refer #TapiResult_t)
266 * @par Prospective Clients:
278 /*================================================================================================*/
279 int tel_req_sap_transfer_apdu(TapiHandle *handle, TelSapApduData_t *apdu_data, tapi_response_cb callback, void *user_data);
282 * @brief This API is used to request to transport protocol.
284 * @par Sync (or) Async:
285 * This is an Asynchronous API.
287 * @par Important Notes:
294 * - handle from tel_init().
296 * @param [in] protocol
297 * - SAP transport protocol type
299 * @param [in] callback
300 * - To register callback function for result.
302 * @param [in] user_data
303 * - user_data for user specification.
311 * @return Return Type (int) \n
312 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
313 * - Negative integer : it provides an error code (Refer #TapiResult_t)
315 * @par Prospective Clients:
327 /*================================================================================================*/
328 int tel_req_sap_transport_protocol(TapiHandle *handle, TelSimSapProtocol_t protocol, tapi_response_cb callback, void *user_data);
331 * @brief This API is used to request to control power_mode.
333 * @par Sync (or) Async:
334 * This is an Asynchronous API.
336 * @par Important Notes:
343 * - handle from tel_init().
345 * @param [in] power_mode
346 * - enum data for controlling power mode of client
348 * @param [in] callback
349 * - To register callback function for result.
351 * @param [in] user_data
352 * - user_data for user specification.
360 * @return Return Type (int) \n
361 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
362 * - Negative integer : it provides an error code (Refer #TapiResult_t)
364 * @par Prospective Clients:
376 /*================================================================================================*/
377 int tel_req_sap_power_operation(TapiHandle *handle, TelSimSapPowerMode_t power_mode, tapi_response_cb callback, void *user_data);
380 * @brief This API is used to request to get card_reader_status.
382 * @par Sync (or) Async:
383 * This is an Asynchronous API.
385 * @par Important Notes:
392 * - handle from tel_init().
394 * @param [in] callback
395 * - To register callback function for result.
397 * @param [in] user_data
398 * - user_data for user specification.
406 * @return Return Type (int) \n
407 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
408 * - Negative integer : it provides an error code (Refer #TapiResult_t)
410 * @par Prospective Clients:
422 /*================================================================================================*/
423 int tel_req_sap_cardreader_status(TapiHandle *handle, tapi_response_cb callback, void *user_data);
429 #endif /* _ITAPI_SAP_H_ */