Syntax
VM_RESULT vm_gsm_sim_get_home_plmn(
    VM_GSM_SIM_ID sim_card_id, 
    VMCHAR* buffer, 
    VMUINT buffer_size
);
ContentsIndex
PreviousUpNext
vm_gsm_sim_get_home_plmn
Syntax
VM_RESULT vm_gsm_sim_get_home_plmn(
    VM_GSM_SIM_ID sim_card_id, 
    VMCHAR* buffer, 
    VMUINT buffer_size
);
Description

Gets the PLMN of the home network of the specified SIM card.

Parameters
Parameters 
Description 
VM_GSM_SIM_ID sim_card_id 
[IN] The Index of the SIM card, e.g. VM_GSM_SIM_SIM1. 
VMCHAR* buffer 
[OUT] The buffer to be filled with the PLMN, retrieved from the device. 
VMUINT buffer_size 
[IN] The size of buffer. It shall be greater than or equal to (VM_GSM_SIM_MAX_PLMN_LENGTH + 1). 
Returns

It returns 0, if this function can find a valid PLMN. 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.