le_rsim_interface.h
Go to the documentation of this file.
51 * The communication between the application and the remote SIM service uses the SIM Access Profile60 * <tr><td rowspan="5">Connection management <td>CONNECT_REQ <td rowspan="5">Mandatory <td>Supported65 * <tr><td rowspan="2">Transfer APDU <td>TRANSFER_APDU_REQ <td rowspan="2">Mandatory <td>Supported76 * <tr><td rowspan="2">Transfer Card Reader Status <td>TRANSFER_CARD_READER_STATUS_REQ <td rowspan="2">Optional <td>Not supported79 * <tr><td rowspan="2">Set Transport Protocol <td>SET_TRANSPORT_PROTOCOL_REQ <td rowspan="2">Optional <td>Not supported85 * that the remote SIM server is ready to receive messages and that a remote SIM card is available.137 //--------------------------------------------------------------------------------------------------141 //--------------------------------------------------------------------------------------------------144 //--------------------------------------------------------------------------------------------------147 * Connect the current client thread to the service providing this API. Block until the service is150 * For each thread that wants to use this API, either ConnectService or TryConnectService must be151 * called before any other functions in this API. Normally, ConnectService is automatically called156 //--------------------------------------------------------------------------------------------------162 //--------------------------------------------------------------------------------------------------165 * Try to connect the current client thread to the service providing this API. Return with an error168 * For each thread that wants to use this API, either ConnectService or TryConnectService must be169 * called before any other functions in this API. Normally, ConnectService is automatically called178 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).181 //--------------------------------------------------------------------------------------------------187 //--------------------------------------------------------------------------------------------------191 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants194 //--------------------------------------------------------------------------------------------------201 //--------------------------------------------------------------------------------------------------207 * longer a connection to the service, and the functions in this API can't be used. For details, see212 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------233 //--------------------------------------------------------------------------------------------------237 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------246 //--------------------------------------------------------------------------------------------------255 //--------------------------------------------------------------------------------------------------259 //--------------------------------------------------------------------------------------------------266 //--------------------------------------------------------------------------------------------------274 * @warning The sending process is asynchronous: only the message length is checked by this function278 //--------------------------------------------------------------------------------------------------struct le_rsim_MessageHandler * le_rsim_MessageHandlerRef_tDefinition: le_rsim_common.h:51void(* le_rsim_DisconnectHandler_t)(void *)Definition: le_rsim_interface.h:142void(* le_rsim_CallbackHandlerFunc_t)(uint8_t messageId, le_result_t result, void *contextPtr)Definition: le_rsim_common.h:75void(* le_rsim_MessageHandlerFunc_t)(const uint8_t *messagePtr, size_t messageSize, void *contextPtr)Definition: le_rsim_common.h:60void le_rsim_ConnectService(void)le_result_t le_rsim_TryConnectService(void)void le_rsim_RemoveMessageHandler(le_rsim_MessageHandlerRef_t handlerRef)LE_FULL_API void le_rsim_SetServerDisconnectHandler(le_rsim_DisconnectHandler_t disconnectHandler, void *contextPtr)le_rsim_MessageHandlerRef_t le_rsim_AddMessageHandler(le_rsim_MessageHandlerFunc_t handlerPtr, void *contextPtr)void le_rsim_DisconnectService(void)le_result_t le_rsim_SendMessage(const uint8_t *messagePtr, size_t messageSize, le_rsim_CallbackHandlerFunc_t callbackPtr, void *contextPtr)