Syntax
VM_RESULT vm_gsm_sim_get_iccid_with_sim(
    VM_GSM_SIM_ID sim_card_id, 
    vm_gsm_sim_get_iccid_callback callback, 
    VMSTR iccid, 
    VMINT iccid_size, 
    void* user_data
);
ContentsIndex
PreviousUpNext
vm_gsm_sim_get_iccid_with_sim
Syntax
VM_RESULT vm_gsm_sim_get_iccid_with_sim(
    VM_GSM_SIM_ID sim_card_id, 
    vm_gsm_sim_get_iccid_callback callback, 
    VMSTR iccid, 
    VMINT iccid_size, 
    void* user_data
);
Description

Gets the ICC ID of the specified SIM card. The callback function will set the iccid when it returns.

Parameters
Parameters 
Description 
VM_GSM_SIM_ID sim_card_id 
[IN] The Index of the SIM card, e.g. VM_GSM_SIM_SIM1. 
VMSTR iccid 
[OUT] The buffer to store the value of iccid that is retrieved by the callback. 
VMINT iccid_size 
[IN] The size of iccid buffer in bytes. 
void* user_data 
[IN] The data content to be used by the callback. 
Returns

It returns 0, if this function gets the iccid successfully. A negative number is 

returned if there is an error. The error code -2 means a parameter error. 

The error code -3 means no SIM card. The error code -4 means internal error. 

The error code -5 means not supported SIM card.

File

vmgsm_sim.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.