The sim card utility functions.  
More...
|  | 
| ewf_result | ewf_adapter_modem_sim_pin_enter (ewf_adapter *adapter_ptr, const char *pin_str) | 
|  | Enter the modem SIM PIN (+cpin)  More... 
 | 
|  | 
| ewf_result | ewf_adapter_modem_sim_pin_status_read (ewf_adapter *adapter_ptr, char *code_str, uint32_t *code_str_len) | 
|  | Read the modem SIM PIN status (+cpin?)  More... 
 | 
|  | 
| ewf_result | ewf_adapter_modem_sim_pin_change (ewf_adapter *adapter_ptr, const char *pin_str, const char *new_pin_str) | 
|  | Set the modem SIM new PIN (+cpin)  More... 
 | 
|  | 
| ewf_result | ewf_adapter_modem_sim_pin_retries_read (ewf_adapter *adapter_ptr, const char *sel_code_str, uint32_t *retries_ptr, uint32_t *default_retries_ptr) | 
|  | Remaining PIN retries (+cpinr)  More... 
 | 
|  | 
| ewf_result | ewf_adapter_modem_sim_generic_access_set (ewf_adapter *adapter_ptr, uint32_t lenght, const char *command_str) | 
|  | Generic SIM access (+csim)  More... 
 | 
|  | 
| ewf_result | ewf_adapter_modem_sim_restricted_access (ewf_adapter *adapter_ptr, uint32_t command, uint32_t field, uint32_t p1, uint32_t p2, uint32_t p3, const char *data_str, const char *pathid_str) | 
|  | Restricted sim access (+crsm)  More... 
 | 
|  | 
| ewf_result | ewf_adapter_modem_facility_lock (ewf_adapter *adapter_ptr, const char *facility_str, const char *password_str, uint32_t classx) | 
|  | Lock a modem facility (+clck)  More... 
 | 
|  | 
| ewf_result | ewf_adapter_modem_facility_unlock (ewf_adapter *adapter_ptr, const char *facility_str, const char *password_str, uint32_t classx) | 
|  | Unlock a modem facility (+clck)  More... 
 | 
|  | 
| ewf_result | ewf_adapter_modem_facility_password_change (ewf_adapter *adapter_ptr, const char *facility_str, const char *old_password_str, const char *new_password_str) | 
|  | Change pwssword of a modem facility (+cpwd)  More... 
 | 
|  | 
The sim card utility functions. 
◆ ewf_adapter_modem_facility_lock()
      
        
          | ewf_result ewf_adapter_modem_facility_lock | ( | ewf_adapter * | adapter_ptr, | 
        
          |  |  | const char * | facility_str, | 
        
          |  |  | const char * | password_str, | 
        
          |  |  | uint32_t | classx | 
        
          |  | ) |  |  | 
      
 
Lock a modem facility (+clck) 
- Parameters
- 
  
    | [in] | adapter_ptr | A pointer to the adapter structure |  | [in] | facility_str | a pointer to a string with the facility to read |  | [in] | password_str | a pointer to a string with the password for accessing the facility |  | [in] | classx | Sum of integers each representing a class of information |  
 
- Returns
- ewf_result status code 
 
 
◆ ewf_adapter_modem_facility_password_change()
      
        
          | ewf_result ewf_adapter_modem_facility_password_change | ( | ewf_adapter * | adapter_ptr, | 
        
          |  |  | const char * | facility_str, | 
        
          |  |  | const char * | old_password_str, | 
        
          |  |  | const char * | new_password_str | 
        
          |  | ) |  |  | 
      
 
Change pwssword of a modem facility (+cpwd) 
- Parameters
- 
  
    | [in] | adapter_ptr | A pointer to the adapter structure |  | [in] | facility_str | a pointer to a string with the facility to read |  | [in] | old_password_str | a pointer to a string with the current password for accessing the facility |  | [in] | new_password_str | a pointer to a string with the new password for accessing the facility |  
 
- Returns
- ewf_result status code 
 
 
◆ ewf_adapter_modem_facility_unlock()
      
        
          | ewf_result ewf_adapter_modem_facility_unlock | ( | ewf_adapter * | adapter_ptr, | 
        
          |  |  | const char * | facility_str, | 
        
          |  |  | const char * | password_str, | 
        
          |  |  | uint32_t | classx | 
        
          |  | ) |  |  | 
      
 
Unlock a modem facility (+clck) 
- Parameters
- 
  
    | [in] | adapter_ptr | A pointer to the adapter structure |  | [in] | facility_str | a pointer to a string with the facility to read |  | [in] | password_str | a pointer to a string with the password for accessing the facility |  | [in] | classx | Sum of integers each representing a class of information |  
 
- Returns
- ewf_result status code 
 
 
◆ ewf_adapter_modem_sim_generic_access_set()
      
        
          | ewf_result ewf_adapter_modem_sim_generic_access_set | ( | ewf_adapter * | adapter_ptr, | 
        
          |  |  | uint32_t | lenght, | 
        
          |  |  | const char * | command_str | 
        
          |  | ) |  |  | 
      
 
Generic SIM access (+csim) 
- Parameters
- 
  
    | [in] | adapter_ptr | A pointer to the adapter structure |  | [in] | length | Length of char that are sent in command (twice the actual leght of command or response) |  | [in] | command_str | a pointer to string in hex format, see the 3GPP TS 51.011 [73] |  
 
- Returns
- ewf_result status code 
 
 
◆ ewf_adapter_modem_sim_pin_change()
      
        
          | ewf_result ewf_adapter_modem_sim_pin_change | ( | ewf_adapter * | adapter_ptr, | 
        
          |  |  | const char * | pin_str, | 
        
          |  |  | const char * | new_pin_str | 
        
          |  | ) |  |  | 
      
 
Set the modem SIM new PIN (+cpin) 
- Parameters
- 
  
    | [in] | adapter_ptr | A pointer to the adapter structure |  | [in] | pin_str | Pointer to the current SIM PIN string |  | [in] | new_pin_str | Pointer to the current SIM PIN string |  
 
- Returns
- ewf_result status code 
 
 
◆ ewf_adapter_modem_sim_pin_enter()
Enter the modem SIM PIN (+cpin) 
- Parameters
- 
  
    | [in] | adapter_ptr | A pointer to the adapter structure |  | [in] | pin_str | Pointer to he current SIM PIN string |  
 
- Returns
- ewf_result status code 
 
 
◆ ewf_adapter_modem_sim_pin_retries_read()
      
        
          | ewf_result ewf_adapter_modem_sim_pin_retries_read | ( | ewf_adapter * | adapter_ptr, | 
        
          |  |  | const char * | sel_code_str, | 
        
          |  |  | uint32_t * | retries_ptr, | 
        
          |  |  | uint32_t * | default_retries_ptr | 
        
          |  | ) |  |  | 
      
 
Remaining PIN retries (+cpinr) 
- Parameters
- 
  
    | [in] | adapter_ptr | A pointer to the adapter structure |  | [in] | sel_code_str | Pointer to string containing the type of PIN ("SIM PIN", "SIM PUK", "SIM PIN2", "SIM PUK2") |  | [out] | retries_ptr | Pointer to remaining number of retries |  | [out] | default_retries_ptr | Pointer to remaining number of default/initial retries |  
 
- Returns
- ewf_result status code 
 
 
◆ ewf_adapter_modem_sim_pin_status_read()
      
        
          | ewf_result ewf_adapter_modem_sim_pin_status_read | ( | ewf_adapter * | adapter_ptr, | 
        
          |  |  | char * | code_str, | 
        
          |  |  | uint32_t * | code_str_len | 
        
          |  | ) |  |  | 
      
 
Read the modem SIM PIN status (+cpin?) 
- Parameters
- 
  
    | [in] | adapter_ptr | A pointer to the adapter structure |  | [out] | code_str | A pointer to the buffer that will contain the SIM PIN |  | [out] | code_str_len | The length of the buffer |  
 
- Returns
- ewf_result status code 
 
 
◆ ewf_adapter_modem_sim_restricted_access()
      
        
          | ewf_result ewf_adapter_modem_sim_restricted_access | ( | ewf_adapter * | adapter_ptr, | 
        
          |  |  | uint32_t | command, | 
        
          |  |  | uint32_t | field, | 
        
          |  |  | uint32_t | p1, | 
        
          |  |  | uint32_t | p2, | 
        
          |  |  | uint32_t | p3, | 
        
          |  |  | const char * | data_str, | 
        
          |  |  | const char * | pathid_str | 
        
          |  | ) |  |  | 
      
 
Restricted sim access (+crsm) 
- Parameters
- 
  
    | [in] | adapter_ptr | A pointer to the adapter structure |  | [in] | command | Integer value for command passbed on by MT to the SIM |  | [in] | field | Integerm Identifier of a elementary datafile on SIM |  | [in] | p1 | Parameter passed on by the MT to the SIM |  | [in] | p2 | Parameter passed on by the MT to the SIM |  | [in] | p3 | Parameter passed on by the MT to the SIM |  | [in] | data_str | String as Hexadecimal information to be written to the SIM |  | [in] | pathid_str | String holding the path of an elementary file on the SIM/UICC in hexadecimal format |  
 
- Returns
- ewf_result status code