Diffstat (limited to 'gammu/emb/common/phone/at/atgen.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | gammu/emb/common/phone/at/atgen.h | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/gammu/emb/common/phone/at/atgen.h b/gammu/emb/common/phone/at/atgen.h new file mode 100644 index 0000000..0e08ee4 --- a/dev/null +++ b/gammu/emb/common/phone/at/atgen.h | |||
@@ -0,0 +1,110 @@ | |||
1 | /* (c) 2002-2004 by Marcin Wiacek and Michal Cihar */ | ||
2 | |||
3 | #ifndef atgen_h | ||
4 | #define atgen_h | ||
5 | |||
6 | #include "../../gsmcomon.h" | ||
7 | #include "../../gsmstate.h" | ||
8 | #include "../../service/sms/gsmsms.h" | ||
9 | |||
10 | #ifndef GSM_USED_AT | ||
11 | # define GSM_USED_AT | ||
12 | #endif | ||
13 | #ifndef GSM_USED_BLUEAT | ||
14 | # define GSM_USED_BLUEAT | ||
15 | #endif | ||
16 | #ifndef GSM_USED_IRDAAT | ||
17 | # define GSM_USED_IRDAAT | ||
18 | #endif | ||
19 | |||
20 | #define MAX_VCALENDAR_LOCATION 50 | ||
21 | |||
22 | typedef enum { | ||
23 | SMS_AT_PDU = 1, | ||
24 | SMS_AT_TXT | ||
25 | } GSM_AT_SMS_Modes; | ||
26 | |||
27 | typedef enum { | ||
28 | AT_Reply_OK = 1, | ||
29 | AT_Reply_Connect, | ||
30 | AT_Reply_Error, | ||
31 | AT_Reply_Unknown, | ||
32 | AT_Reply_CMSError, | ||
33 | AT_Reply_CMEError, | ||
34 | AT_Reply_SMSEdit | ||
35 | } GSM_AT_Reply_State; | ||
36 | |||
37 | typedef enum { | ||
38 | AT_Nokia = 1, | ||
39 | AT_Alcatel, | ||
40 | AT_Siemens, | ||
41 | AT_HP, | ||
42 | AT_Falcom, | ||
43 | AT_Ericsson, | ||
44 | AT_Sagem, | ||
45 | AT_Unknown | ||
46 | } GSM_AT_Manufacturer; | ||
47 | |||
48 | typedef enum { | ||
49 | AT_PBK_HEX = 1, | ||
50 | AT_PBK_GSM, | ||
51 | AT_PBK_UCS2 | ||
52 | } GSM_AT_PBK_Charset; | ||
53 | |||
54 | typedef enum { | ||
55 | AT_AVAILABLE = 1, | ||
56 | AT_NOTAVAILABLE | ||
57 | } GSM_AT_SMSMemory; | ||
58 | |||
59 | typedef enum { | ||
60 | AT_SBNR_AVAILABLE = 1, | ||
61 | AT_SBNR_NOTAVAILABLE | ||
62 | } GSM_AT_SBNR; | ||
63 | |||
64 | typedef enum { | ||
65 | AT_Status, | ||
66 | AT_NextEmpty, | ||
67 | AT_Total, | ||
68 | AT_First, | ||
69 | AT_Sizes | ||
70 | } GSM_AT_NeededMemoryInfo; | ||
71 | |||
72 | #define AT_PBK_MAX_MEMORIES200 | ||
73 | |||
74 | typedef struct { | ||
75 | GSM_AT_Manufacturer Manufacturer; /* Who is manufacturer */ | ||
76 | GSM_Lines Lines; /* Allow to simply get each line in response */ | ||
77 | GSM_AT_Reply_State ReplyState; /* What response type - error, OK, etc. */ | ||
78 | int ErrorCode; /* Error codes from responses */ | ||
79 | char *ErrorText; /* Error description */ | ||
80 | |||
81 | GSM_MemoryType PBKMemory; /* Last read PBK memory */ | ||
82 | char PBKMemories[AT_PBK_MAX_MEMORIES + 1]; /* Supported by phone PBK memories */ | ||
83 | int NextMemoryEntry; /* Next empty memory entry */ | ||
84 | int FirstMemoryEntry; /* First memory entry to be read */ | ||
85 | GSM_AT_PBK_Charset PBKCharset; /* Last read PBK charset */ | ||
86 | bool UCS2CharsetFailed; /* Whether setting of UCS2 charset has already failed */ | ||
87 | bool NonUCS2CharsetFailed; /* Whether setting of non-UCS2 charset has already failed */ | ||
88 | GSM_AT_SBNR PBKSBNR; | ||
89 | int NumberLength; | ||
90 | int TextLength; | ||
91 | int MemorySize; | ||
92 | |||
93 | GSM_SMSMemoryStatusLastSMSStatus; | ||
94 | int LastSMSRead; | ||
95 | int FirstCalendarPos; | ||
96 | bool CanSaveSMS; | ||
97 | GSM_AT_SMSMemory PhoneSMSMemory; /* Is phone SMS memory available ? */ | ||
98 | GSM_AT_SMSMemory SIMSMSMemory; /* Is SIM SMS memory available ? */ | ||
99 | GSM_MemoryType SMSMemory; /* Last read SMS memory */ | ||
100 | GSM_AT_SMS_Modes SMSMode; /* PDU or TEXT mode for SMS ? */ | ||
101 | |||
102 | bool OBEX; | ||
103 | GSM_File file; | ||
104 | } GSM_Phone_ATGENData; | ||
105 | |||
106 | #endif | ||
107 | |||
108 | /* How should editor hadle tabs in this file? Add editor commands here. | ||
109 | * vim: noexpandtab sw=8 ts=8 sts=8: | ||
110 | */ | ||