Imported gammu 0.90.7
[gammu.git] / common / phone / nokia / dct4 / n6510.h
blob9d657da789267480358c929e4b6b18fd4d879018
2 #ifndef n6510_h
3 #define n6510_h
5 #include "../ncommon.h"
6 #include "../../../service/sms/gsmsms.h"
8 typedef enum {
9 N6510_LIGHT_DISPLAY = 0x01,
10 N6510_LIGHT_KEYPAD = 0x03,
11 N6510_LIGHT_TORCH = 0x10
12 } N6510_PHONE_LIGHTS;
14 typedef struct {
15 int LastCalendarYear;
16 int LastCalendarPos;
17 GSM_NOKIACalToDoLocations LastCalendar;
18 int FirstCalendarPos;
19 unsigned char CalendarIcons[10];
20 GSM_CalendarNoteType CalendarIconsTypes[10];
21 int CalendarIconsNum;
23 GSM_NOKIASMSFolder LastSMSFolder;
24 GSM_SMSFolders LastSMSFolders;
26 GSM_NOKIACalToDoLocations LastToDo;
28 unsigned char RingtoneID; /* When set with preview */
30 int FilesLocations[500];
31 int FilesLevels[500];
32 int FilesLocationsUsed;
33 int FilesLocationsCurrent;
34 int FileToken;
35 int ParentID;
36 int FileCheckSum;
38 unsigned char FMStatus[4000];
39 int FMStatusLength;
41 unsigned char GPRSPoints[4000];
42 int GPRSPointsLength;
44 unsigned char PhoneMode;
45 } GSM_Phone_N6510Data;
47 void N6510_EncodeFMFrequency(double freq, unsigned char *buff);
48 void N6510_DecodeFMFrequency(double *freq, unsigned char *buff);
50 #ifndef GSM_USED_MBUS2
51 # define GSM_USED_MBUS2
52 #endif
53 #ifndef GSM_USED_FBUS2
54 # define GSM_USED_FBUS2
55 #endif
56 #ifndef GSM_USED_FBUS2DLR3
57 # define GSM_USED_FBUS2DLR3
58 #endif
59 #ifndef GSM_USED_FBUS2DKU5
60 # define GSM_USED_FBUS2DKU5
61 #endif
62 #ifndef GSM_USED_PHONETBLUE
63 # define GSM_USED_PHONETBLUE
64 #endif
65 #ifndef GSM_USED_IRDAPHONET
66 # define GSM_USED_IRDAPHONET
67 #endif
68 #ifndef GSM_USED_BLUEPHONET
69 # define GSM_USED_BLUEPHONET
70 #endif
72 #endif
74 /* How should editor hadle tabs in this file? Add editor commands here.
75 * vim: noexpandtab sw=8 ts=8 sts=8: