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