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.132 //--------------------------------------------------------------------------------------------------136 //--------------------------------------------------------------------------------------------------139 //--------------------------------------------------------------------------------------------------142 * Connect the current client thread to the service providing this API. Block until the service is145 * For each thread that wants to use this API, either ConnectService or TryConnectService must be146 * called before any other functions in this API. Normally, ConnectService is automatically called151 //--------------------------------------------------------------------------------------------------157 //--------------------------------------------------------------------------------------------------160 * Try to connect the current client thread to the service providing this API. Return with an error163 * For each thread that wants to use this API, either ConnectService or TryConnectService must be164 * called before any other functions in this API. Normally, ConnectService is automatically called173 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).176 //--------------------------------------------------------------------------------------------------182 //--------------------------------------------------------------------------------------------------186 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants189 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------202 * longer a connection to the service, and the functions in this API can't be used. For details, see207 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------234 //--------------------------------------------------------------------------------------------------237 //--------------------------------------------------------------------------------------------------241 //--------------------------------------------------------------------------------------------------245 //--------------------------------------------------------------------------------------------------249 //--------------------------------------------------------------------------------------------------251 (260 //--------------------------------------------------------------------------------------------------264 //--------------------------------------------------------------------------------------------------266 (275 //--------------------------------------------------------------------------------------------------281 //--------------------------------------------------------------------------------------------------290 //--------------------------------------------------------------------------------------------------294 //--------------------------------------------------------------------------------------------------301 //--------------------------------------------------------------------------------------------------309 * @warning The sending process is asynchronous: only the message length is checked by this function313 //--------------------------------------------------------------------------------------------------le_result_t le_rsim_SendMessage(const uint8_t *messagePtr, size_t messageSize, le_rsim_CallbackHandlerFunc_t callbackPtr, void *contextPtr)void(* le_rsim_DisconnectHandler_t)(void *)Definition: le_rsim_interface.h:137void le_rsim_SetServerDisconnectHandler(le_rsim_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_rsim_ConnectService(void)struct le_rsim_MessageHandler * le_rsim_MessageHandlerRef_tDefinition: le_rsim_interface.h:242void le_rsim_DisconnectService(void)void(* le_rsim_CallbackHandlerFunc_t)(uint8_t messageId, le_result_t result, void *contextPtr)Definition: le_rsim_interface.h:266le_result_t le_rsim_TryConnectService(void)void le_rsim_RemoveMessageHandler(le_rsim_MessageHandlerRef_t handlerRef)void(* le_rsim_MessageHandlerFunc_t)(const uint8_t *messagePtr, size_t messageSize, void *contextPtr)Definition: le_rsim_interface.h:251le_rsim_MessageHandlerRef_t le_rsim_AddMessageHandler(le_rsim_MessageHandlerFunc_t handlerPtr, void *contextPtr)