blob: 471e36ab0fb5467fd1a0fdf2f4447284bd530cca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
/* (c) 2002-2005 by Marcin Wiacek */
#ifndef n6510_h
#define n6510_h
#include "../../ncommon.h"
typedef enum {
N6510_MMS_SETTINGS = 0x01,
N6510_CHAT_SETTINGS,
N6510_WAP_SETTINGS,
N6510_SYNCML_SETTINGS
} N6510_Connection_Settings;
typedef enum {
N6510_LIGHT_DISPLAY = 0x01,
N6510_LIGHT_KEYPAD = 0x03,
N6510_LIGHT_TORCH = 0x10
} N6510_PHONE_LIGHTS;
typedef struct {
int LastCalendarYear;
int LastCalendarPos;
GSM_NOKIACalToDoLocations LastCalendar;
int FirstCalendarPos;
unsigned char CalendarIcons[10];
GSM_CalendarNoteType CalendarIconsTypes[10];
int CalendarIconsNum;
GSM_NOKIASMSFolder LastSMSFolder;
GSM_SMSFolders LastSMSFolders;
GSM_File SMSFile;
GSM_Error SMSFileError;
int SMSFileFolder;
GSM_NOKIACalToDoLocations LastToDo;
GSM_NOKIACalToDoLocations LastNote;
unsigned char RingtoneID; /* When set with preview */
GSM_File *FilesCache; //[GSM_PHONE_MAXSMSINFOLDER];
int FilesLocationsUsed;
int FilesLocationsAvail;
int FileToken;
int ParentID;
int FileCheckSum;
gboolean FilesEnd;
gboolean UseFs1;
GSM_Error filesystem2error;
unsigned char FMStatus[4000];
int FMStatusLength;
unsigned char GPRSPoints[4000];
int GPRSPointsLength;
int BearerNumber;
unsigned char PhoneMode;
char MMSFoldersID2[10][80];
GSM_File MMSFile;
int MMSFolderNum;
GSM_Error MMSFolderError;
/**
* Last location we used for adding memory entry.
*/
int LastFreeMemoryLocation;
/**
* Last type of memory used for LastFreeMemoryLocation.
*/
GSM_MemoryType LastFreeMemoryType;
/**
* Size of memory when starting last free memory lookup.
*/
int LastFreeMemorySize;
/**
* Communication timeout. This needs to be higher for unreliable
* links as IrDA.
*/
int Timeout;
} GSM_Phone_N6510Data;
void N6510_EncodeFMFrequency(double freq, unsigned char *buff);
void N6510_DecodeFMFrequency(double *freq, unsigned char *buff);
#ifndef GSM_USED_MBUS2
# define GSM_USED_MBUS2
#endif
#ifndef GSM_USED_FBUS2
# define GSM_USED_FBUS2
#endif
#ifndef GSM_USED_FBUS2DLR3
# define GSM_USED_FBUS2DLR3
#endif
#ifndef GSM_USED_DKU2PHONET
# define GSM_USED_DKU2PHONET
#endif
#ifndef GSM_USED_DKU2AT
# define GSM_USED_DKU2AT
#endif
#ifndef GSM_USED_DKU5FBUS2
# define GSM_USED_DKU5FBUS2
#endif
#ifndef GSM_USED_PHONETBLUE
# define GSM_USED_PHONETBLUE
#endif
#ifndef GSM_USED_IRDAPHONET
# define GSM_USED_IRDAPHONET
#endif
#ifndef GSM_USED_BLUEPHONET
# define GSM_USED_BLUEPHONET
#endif
#ifndef GSM_USED_FBUS2PL2303
# define GSM_USED_FBUS2PL2303
#endif
#endif
/* How should editor hadle tabs in this file? Add editor commands here.
* vim: noexpandtab sw=8 ts=8 sts=8:
*/
|