Lines Matching refs:sim
246 /* SIM card */
247 ASimCard sim;
596 modem->sim = asimcard_create(base_port);
620 asimcard_destroy( modem->sim );
621 modem->sim = NULL;
650 return modem->sim;
1319 switch (asimcard_get_status(modem->sim)) {
1323 case A_SIM_STATUS_PIN: answer = "+CPIN: SIM PIN"; break;
1324 case A_SIM_STATUS_PUK: answer = "+CPIN: SIM PUK"; break;
1436 return asimcard_io( modem->sim, cmd );
1810 switch (asimcard_get_status(modem->sim)) {
1812 return "+CME ERROR: SIM ABSENT";
1815 return "+CME ERROR: SIM NOT READY";
1824 if ( !asimcard_check_pin( modem->sim, pin ) )
1828 asimcard_set_pin( modem->sim, pin );
1835 if ( asimcard_check_pin( modem->sim, cmd ) )
1845 if ( asimcard_check_puk( modem->sim, puk, cmd+5 ) )
2447 { "!+CMGD=", NULL, handleDeleteSMSonSIM }, /* delete SMS on SIM */