Gammu API
1.32.90
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
gammu-info.h
Go to the documentation of this file.
1
7
#ifndef __gammu_info_h
8
#define __gammu_info_h
9
15
#include <
gammu-types.h
>
16
#include <
gammu-error.h
>
17
#include <
gammu-limits.h
>
18
24
const
unsigned
char
*
GSM_GetNetworkName
(
const
char
*NetworkCode);
25
31
const
unsigned
char
*
GSM_GetCountryName
(
const
char
*CountryCode);
32
38
typedef
struct
{
39
const
char
Code[8];
40
const
char
Name[64];
41
}
GSM_CodeName
;
42
48
extern
const
GSM_CodeName
GSM_Networks
[];
49
55
extern
const
GSM_CodeName
GSM_Countries
[];
56
62
typedef
enum
{
66
GSM_HomeNetwork
= 1,
70
GSM_NoNetwork
,
74
GSM_RoamingNetwork
,
78
GSM_RegistrationDenied
,
82
GSM_NetworkStatusUnknown
,
86
GSM_RequestingNetwork
87
}
GSM_NetworkInfo_State
;
88
94
typedef
enum
{
98
GSM_GPRS_Detached
= 1,
102
GSM_GPRS_Attached
103
}
GSM_GPRS_State
;
104
110
typedef
struct
{
114
char
CID[10];
118
char
NetworkCode[10];
123
GSM_NetworkInfo_State
State
;
127
char
LAC[10];
131
unsigned
char
NetworkName[15 * 2];
135
GSM_GPRS_State
GPRS
;
139
char
PacketCID[10];
144
GSM_NetworkInfo_State
PacketState
;
148
char
PacketLAC[10];
149
}
GSM_NetworkInfo
;
150
156
typedef
struct
{
157
/*
158
* Signal strength in dBm
159
*/
160
int
SignalStrength
;
164
int
SignalPercent
;
168
int
BitErrorRate
;
169
}
GSM_SignalQuality
;
170
176
typedef
enum
{
180
GSM_BatteryPowered
= 1,
184
GSM_BatteryConnected
,
188
GSM_BatteryCharging
,
192
GSM_BatteryNotConnected
,
196
GSM_BatteryFull
,
200
GSM_PowerFault
201
}
GSM_ChargeState
;
202
208
typedef
enum
{
212
GSM_BatteryUnknown
= 0,
216
GSM_BatteryNiMH
= 1,
220
GSM_BatteryLiIon
,
224
GSM_BatteryLiPol
225
}
GSM_BatteryType
;
226
232
typedef
struct
{
236
int
BatteryPercent
;
240
GSM_ChargeState
ChargeState
;
244
int
BatteryVoltage
;
248
int
ChargeVoltage
;
252
int
ChargeCurrent
;
256
int
PhoneCurrent
;
260
int
BatteryTemperature
;
264
int
PhoneTemperature
;
268
int
BatteryCapacity
;
272
GSM_BatteryType
BatteryType
;
273
}
GSM_BatteryCharge
;
274
280
typedef
enum
{
281
GSM_CallActive
= 1,
285
GSM_SMSMemoryFull
,
286
GSM_FaxCall
,
287
GSM_UnreadSMS
,
288
GSM_DataCall
,
289
GSM_VoiceCall
,
290
GSM_KeypadLocked
291
}
GSM_DisplayFeature
;
292
298
typedef
struct
{
299
int
Number
;
300
GSM_DisplayFeature
Feature[7];
301
}
GSM_DisplayFeatures
;
302
309
typedef
enum
{
310
/* n6110.c */
314
F_CAL33
= 1,
318
F_CAL52
,
322
F_CAL82
,
326
F_RING_SM
,
330
F_NORING
,
334
F_NOPBKUNICODE
,
338
F_NOWAP
,
342
F_NOCALLER
,
346
F_NOPICTURE
,
350
F_NOPICTUREUNI
,
354
F_NOSTARTUP
,
358
F_NOCALENDAR
,
362
F_NOSTARTANI
,
366
F_POWER_BATT
,
370
F_PROFILES33
,
374
F_PROFILES51
,
378
F_MAGICBYTES
,
382
F_NODTMF
,
386
F_DISPSTATUS
,
390
F_NOCALLINFO
,
391
392
/* n3320.c */
396
F_DAYMONTH
,
397
398
/* n6510.c */
402
F_PBK35
,
406
F_PBKIMG
,
410
F_PBKTONEGAL
,
414
F_PBKSMSLIST
,
418
F_PBKUSER
,
422
F_6230iCALLER
,
426
F_RADIO
,
430
F_TODO63
,
434
F_TODO66
,
438
F_NOMIDI
,
442
F_BLUETOOTH
,
446
F_NOFILESYSTEM
,
450
F_NOMMS
,
454
F_NOGPRSPOINT
,
458
F_CAL35
,
462
F_CAL65
,
466
F_WAPMMSPROXY
,
470
F_CHAT
,
474
F_SYNCML
,
478
F_FILES2
,
482
F_NOFILE1
,
486
F_6230iWAP
,
490
F_PROFILES
,
494
F_SERIES40_30
,
498
F_SMS_FILES
,
502
F_3220_MMS
,
503
504
/* n6510.c && n7110.c */
508
F_VOICETAGS
,
512
F_CAL62
,
516
F_NOTES
,
517
518
/* AT modules */
522
F_SMSONLYSENT
,
526
F_BROKENCPBS
,
530
F_M20SMS
,
534
F_SLOWWRITE
,
538
F_SMSME900
,
542
F_ALCATEL
,
546
F_OBEX
,
550
F_IRMC_LEVEL_2
,
554
F_MODE22
,
558
F_SMS_LOCATION_0
,
562
F_NO_UCS2
,
566
F_FORCE_UTF8
,
571
F_SMS_SM
,
576
F_SMS_ME
,
580
F_XLNK
,
584
F_SUBMIT_SIM_ONLY
,
588
F_PBK_UNICODE
,
592
F_SQWE
,
596
F_NO_ATOBEX
,
600
F_LENGTH_BYTES
,
605
F_BROKEN_CMGL
,
609
F_EXTRA_PBK_FIELD
,
613
F_CKPD_NO_UNICODE
,
618
F_CPROT
,
622
F_PBKFAVORITEMESSAGE
,
626
F_PBKNOPOSTAL
,
630
F_PBK_ENCODENUMBER
,
634
F_NO_CLIP
,
639
F_ENCODED_USSD
,
643
F_USE_SMSTEXTMODE
,
647
F_CPIN_NO_OK
,
651
F_FOUR_DIGIT_YEAR
,
655
F_SMS_NO_ME
,
659
F_SMS_NO_SM
,
664
F_SIEMENS_PBK
,
668
F_NO_ATSYNCML
,
672
F_MOBEX
,
676
F_TSSPCSW
,
680
F_DISABLE_GETNEXT
,
684
F_DISABLE_GETNEXTSMS
,
688
F_DISABLE_CMGL
,
692
F_NO_UTF8
,
696
F_SAMSUNG_UTF8
,
700
F_SMS_UTF8_ENCODED
,
704
F_NO_STOP_CUSD
,
708
F_READ_SMSTEXTMODE
,
709
713
F_LAST_VALUE
714
}
GSM_Feature
;
715
726
const
char
*
GSM_FeatureToString
(
GSM_Feature
feature);
727
737
GSM_Feature
GSM_FeatureFromString
(
const
char
*feature);
738
744
typedef
struct
{
748
const
char
*
model
;
752
const
char
*
number
;
756
const
char
*
irdamodel
;
760
GSM_Feature
features[
GSM_MAX_PHONE_FEATURES
+ 1];
761
}
GSM_PhoneModel
;
762
773
gboolean
GSM_IsPhoneFeatureAvailable
(
GSM_PhoneModel
* model,
GSM_Feature
feature);
774
785
gboolean
GSM_AddPhoneFeature
(
GSM_PhoneModel
* model,
GSM_Feature
feature);
786
787
#include <
gammu-statemachine.h
>
788
799
GSM_Error
GSM_GetManufacturer
(
GSM_StateMachine
* s,
char
*value);
800
811
GSM_Error
GSM_GetModel
(
GSM_StateMachine
* s,
char
*value);
812
822
GSM_PhoneModel
*
GSM_GetModelInfo
(
GSM_StateMachine
* s);
823
836
GSM_Error
GSM_GetFirmware
(
GSM_StateMachine
* s,
char
*value,
char
*date,
837
double
*num);
838
849
GSM_Error
GSM_GetIMEI
(
GSM_StateMachine
* s,
char
*value);
850
856
GSM_Error
GSM_GetOriginalIMEI
(
GSM_StateMachine
* s,
char
*value);
857
863
GSM_Error
GSM_GetManufactureMonth
(
GSM_StateMachine
* s,
char
*value);
864
870
GSM_Error
GSM_GetProductCode
(
GSM_StateMachine
* s,
char
*value);
871
877
GSM_Error
GSM_GetHardware
(
GSM_StateMachine
* s,
char
*value);
878
885
GSM_Error
GSM_GetPPM
(
GSM_StateMachine
* s,
char
*value);
886
892
GSM_Error
GSM_GetSIMIMSI
(
GSM_StateMachine
* s,
char
*IMSI);
893
899
GSM_Error
GSM_GetBatteryCharge
(
GSM_StateMachine
* s,
GSM_BatteryCharge
* bat);
900
906
GSM_Error
GSM_GetSignalQuality
(
GSM_StateMachine
* s,
GSM_SignalQuality
* sig);
907
913
GSM_Error
GSM_GetNetworkInfo
(
GSM_StateMachine
* s,
GSM_NetworkInfo
* netinfo);
914
920
GSM_Error
GSM_GetDisplayStatus
(
GSM_StateMachine
* s,
921
GSM_DisplayFeatures
* features);
922
#endif
923
924
/* Editor configuration
925
* vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
926
*/
include
gammu-info.h
Generated by
1.8.1.2