Gammu internals  1.38.0
alcatel.h
Go to the documentation of this file.
1 /* (c) 2002-2004 by Michal Cihar */
2 
15 /*
16  * High level functions for communication with Alcatel One Touch 501 and
17  * compatible mobile phone.
18  *
19  * This code implements functions to communicate with Alcatel phones,
20  * currently seem to work:
21  * - BE5 series (501/701)
22  * - BF5 series (715)
23  * - BH4 series (535/735)
24  * For some functions it uses normal AT mode (not implemented here, look at
25  * ../at/atgen.[ch]) for others it switches into binary mode and initialises
26  * underlaying protocol (see ../../protocol/alcatel/alcabus.[ch]) and
27  * communicates over it. Don't ask me why Alcatel uses such silly thing...
28  */
29 
30 #ifndef alcatel_h
31 #define alcatel_h
32 
33 #include <gammu-limits.h>
34 #include <gammu-category.h>
35 
36 #ifndef GSM_USED_AT
37 # define GSM_USED_AT
38 #endif
39 #ifndef GSM_USED_ALCABUS
40 # define GSM_USED_ALCABUS
41 #endif
42 
46 typedef enum {
50  ModeAT = 1,
56 
60 typedef enum {
64  V_1_0 = 1,
70 
74 typedef enum {
88 
92 typedef enum {
106 
110 typedef enum {
122  Alcatel_string, /* char */
146 
151 #define ALCATEL_FREE_MEMORY 100
152 
156 /* There COULD be 0xffffffff on next line, but this is IMHO enough */
157 #define ALCATEL_MAX_LOCATION 0xffff
158 
161 #define ALCATEL_MAX_CATEGORIES 100
162 
166 typedef struct {
167  /***********************************/
168  /* Communication state information */
169  /***********************************/
191 
192  /*****************/
193  /* Return values */
194  /*****************/
215  unsigned int ReturnInt;
219  unsigned char ReturnString[(GSM_PHONEBOOK_TEXT_LENGTH+1)*2];
220 
221  /***********/
222  /* Caches: */
223  /***********/
224  /* Listings of available items for each type */
228  int **CurrentList;
240  int *ToDoItems;
260  int CurrentFields[GSM_PHONEBOOK_ENTRIES+1];
275 
279  int CurrentCategories[ALCATEL_MAX_CATEGORIES+1];
284  char CurrentCategoriesCache[ALCATEL_MAX_CATEGORIES+1][(GSM_MAX_CATEGORY_NAME_LENGTH + 1)*2];
293 
295 #endif
296 
299 
300 /* How should editor hadle tabs in this file? Add editor commands here.
301  * vim: noexpandtab sw=8 ts=8 sts=8:
302  */
Definition: alcatel.h:68
GSM_Alcatel_BinaryType BinaryType
Definition: alcatel.h:182
#define GSM_PHONEBOOK_TEXT_LENGTH
Definition: gammu-limits.h:91
GSM_Alcatel_BinaryState BinaryState
Definition: alcatel.h:177
GSM_Alcatel_ProtocolVersion
Definition: alcatel.h:60
GSM_Alcatel_BinaryType
Definition: alcatel.h:92
#define GSM_MAX_CATEGORY_NAME_LENGTH
Definition: gammu-limits.h:260
#define GSM_PHONEBOOK_ENTRIES
Definition: gammu-limits.h:98
GSM_DateTime ReturnDateTime
Definition: alcatel.h:211
GSM_Alcatel_BinaryType CurrentFieldsType
Definition: alcatel.h:274
GSM_Alcatel_ProtocolVersion ProtocolVersion
Definition: alcatel.h:190
unsigned int ReturnInt
Definition: alcatel.h:215
gboolean TransferCompleted
Definition: alcatel.h:203
int gboolean
Definition: gammu-types.h:23
GSM_Alcatel_Mode Mode
Definition: alcatel.h:173
GSM_Alcatel_BinaryState
Definition: alcatel.h:74
GSM_Alcatel_Mode
Definition: alcatel.h:46
Definition: alcatel.h:50
GSM_Alcatel_FieldType
Definition: alcatel.h:110
GSM_Alcatel_FieldType ReturnType
Definition: alcatel.h:207
GSM_Alcatel_BinaryType CurrentCategoriesType
Definition: alcatel.h:292
#define ALCATEL_MAX_CATEGORIES
Definition: alcatel.h:161
Definition: alcatel.h:64