datacalls debugging attempts, not yet successful
[gnokii.git] / include / newmodules / n6110.h
index 34a3988..da1bcdd 100644 (file)
@@ -51,168 +51,192 @@ extern GSM_Functions   N6110_Functions;
 extern GSM_Information N6110_Information;
 
 /* Prototypes for the functions designed to be used externally. */
-GSM_Error N6110_Initialise(char *port_device, char *initlength,
+static GSM_Error N6110_Initialise(char *port_device, char *initlength,
                           GSM_ConnectionType connection,
                           void (*rlp_callback)(RLP_F96Frame *frame));
 
-void      N6110_DispatchMessage(u16 MessageLength, u8 *MessageBuffer,
+static void      N6110_DispatchMessage(u16 MessageLength, u8 *MessageBuffer,
                               u8 MessageType);
 
 GSM_Error N6110_SendStatusRequest(void);
 
-int       N6110_GetMemoryType(GSM_MemoryType memory_type);
+static int       N6110_GetMemoryType(GSM_MemoryType memory_type);
 
-GSM_Error N6110_GetVoiceMailbox ( GSM_PhonebookEntry *entry);  
+#ifndef UCLINUX
+static GSM_Error N6110_GetVoiceMailbox ( GSM_PhonebookEntry *entry);  
 
-GSM_Error N6110_GetOperatorName ( GSM_Network *operator);  
-GSM_Error N6110_SetOperatorName ( GSM_Network *operator);    
+static GSM_Error N6110_GetOperatorName ( GSM_Network *operator);  
+static GSM_Error N6110_SetOperatorName ( GSM_Network *operator);    
+#endif /* UCLINUX */
 
-GSM_Error N6110_GetMemoryLocation(GSM_PhonebookEntry *entry);
-GSM_Error N6110_WritePhonebookLocation(GSM_PhonebookEntry *entry);
+static GSM_Error N6110_GetMemoryLocation(GSM_PhonebookEntry *entry);
+static GSM_Error N6110_WritePhonebookLocation(GSM_PhonebookEntry *entry);
 
-GSM_Error N6110_GetSpeedDial(GSM_SpeedDial *entry);
-GSM_Error N6110_SetSpeedDial(GSM_SpeedDial *entry);
+static GSM_Error N6110_GetSpeedDial(GSM_SpeedDial *entry);
+static GSM_Error N6110_SetSpeedDial(GSM_SpeedDial *entry);
 
-GSM_Error N6110_GetMemoryStatus(GSM_MemoryStatus *Status);
-GSM_Error N6110_GetSMSStatus(GSM_SMSStatus *Status);
-GSM_Error N6110_GetSMSCenter(GSM_MessageCenter *MessageCenter);
+static GSM_Error N6110_GetMemoryStatus(GSM_MemoryStatus *Status);
+#ifndef UCLINUX
+static GSM_Error N6110_GetSMSStatus(GSM_SMSStatus *Status);
+static GSM_Error N6110_GetSMSCenter(GSM_MessageCenter *MessageCenter);
   
-GSM_Error N6110_GetSMSMessage(GSM_SMSMessage *Message);
-GSM_Error N6110_DeleteSMSMessage(GSM_SMSMessage *Message);
-GSM_Error N6110_SendSMSMessage(GSM_SMSMessage *Message);
-GSM_Error N6110_SaveSMSMessage(GSM_SMSMessage *Message);
+static GSM_Error N6110_GetSMSMessage(GSM_SMSMessage *Message);
+static GSM_Error N6110_DeleteSMSMessage(GSM_SMSMessage *Message);
+static GSM_Error N6110_SendSMSMessage(GSM_SMSMessage *Message);
+static GSM_Error N6110_SaveSMSMessage(GSM_SMSMessage *Message);
+#endif /* UCLINUX */
 
-GSM_Error N6110_GetRFLevel(GSM_RFUnits *units, float *level);
-GSM_Error N6110_GetBatteryLevel(GSM_BatteryUnits *units, float *level);
-GSM_Error N6110_GetPowerSource(GSM_PowerSource *source);
-GSM_Error N6110_GetDisplayStatus(int *Status);
+static GSM_Error N6110_GetRFLevel(GSM_RFUnits *units, float *level);
+static GSM_Error N6110_GetBatteryLevel(GSM_BatteryUnits *units, float *level);
+static GSM_Error N6110_GetPowerSource(GSM_PowerSource *source);
+#ifndef UCLINUX
+static GSM_Error N6110_GetDisplayStatus(int *Status);
 
-GSM_Error N6110_EnterSecurityCode(GSM_SecurityCode SecurityCode);
-GSM_Error N6110_GetSecurityCodeStatus(int *Status);
-GSM_Error N6110_GetSecurityCode(GSM_SecurityCode *SecurityCode);
+static GSM_Error N6110_EnterSecurityCode(GSM_SecurityCode SecurityCode);
+static GSM_Error N6110_GetSecurityCodeStatus(int *Status);
+static GSM_Error N6110_GetSecurityCode(GSM_SecurityCode *SecurityCode);
 
-GSM_Error N6110_GetSMSCenter(GSM_MessageCenter *MessageCenter);
-GSM_Error N6110_SetSMSCenter(GSM_MessageCenter *MessageCenter);
+static GSM_Error N6110_GetSMSCenter(GSM_MessageCenter *MessageCenter);
+static GSM_Error N6110_SetSMSCenter(GSM_MessageCenter *MessageCenter);
+#endif /* UCLINUX */
 
-GSM_Error N6110_GetIMEI(char *imei);
-GSM_Error N6110_GetRevision(char *revision);
-GSM_Error N6110_GetModel(char *model);
-GSM_Error N6110_GetManufacturer(char *manufacturer);
+static GSM_Error N6110_GetIMEI(char *imei);
+static GSM_Error N6110_GetRevision(char *revision);
+static GSM_Error N6110_GetModel(char *model);
+static GSM_Error N6110_GetManufacturer(char *manufacturer);
 
-GSM_Error N6110_GetDateTime(GSM_DateTime *date_time);
-GSM_Error N6110_SetDateTime(GSM_DateTime *date_time);
+#ifndef UCLINUX
+static GSM_Error N6110_GetDateTime(GSM_DateTime *date_time);
+static GSM_Error N6110_SetDateTime(GSM_DateTime *date_time);
 
-GSM_Error N6110_PrivGetDateTime(GSM_DateTime *date_time, int msgtype);
-GSM_Error N6110_PrivSetDateTime(GSM_DateTime *date_time, int msgtype);
+static GSM_Error N6110_PrivGetDateTime(GSM_DateTime *date_time, int msgtype);
+static GSM_Error N6110_PrivSetDateTime(GSM_DateTime *date_time, int msgtype);
 
-GSM_Error N6110_GetAlarm(int alarm_number, GSM_DateTime *date_time);
-GSM_Error N6110_SetAlarm(int alarm_number, GSM_DateTime *date_time);
+static GSM_Error N6110_GetAlarm(int alarm_number, GSM_DateTime *date_time);
+static GSM_Error N6110_SetAlarm(int alarm_number, GSM_DateTime *date_time);
 
-GSM_Error N6110_PrivGetAlarm(int alarm_number, GSM_DateTime *date_time, int msgtype);
-GSM_Error N6110_PrivSetAlarm(int alarm_number, GSM_DateTime *date_time, int msgtype);
+static GSM_Error N6110_PrivGetAlarm(int alarm_number, GSM_DateTime *date_time, int msgtype);
+static GSM_Error N6110_PrivSetAlarm(int alarm_number, GSM_DateTime *date_time, int msgtype);
 
-GSM_Error N6110_DialVoice(char *Number);
-GSM_Error N6110_DialData(char *Number, char type,  void (* callpassup)(char c));
-GSM_Error N6110_AnswerCall(char s);
+static GSM_Error N6110_DialVoice(char *Number);
+#endif /* UCLINUX */
+static GSM_Error N6110_DialData(char *Number, char type,  void (* callpassup)(char c));
+#ifndef UCLINUX
+static GSM_Error N6110_AnswerCall(char s);
 
-GSM_Error N6110_GetIncomingCallNr(char *Number);
+static GSM_Error N6110_GetIncomingCallNr(char *Number);
 
-GSM_Error N6110_SendBitmap(char *NetworkCode, int width, int height,
-                          unsigned char *bitmap);
-GSM_Error N6110_GetNetworkInfo(GSM_NetworkInfo *NetworkInfo);
+static GSM_Error N6110_GetNetworkInfo(GSM_NetworkInfo *NetworkInfo);
 
-GSM_Error N6110_GetCalendarNote(GSM_CalendarNote *CalendarNote);
-GSM_Error N6110_WriteCalendarNote(GSM_CalendarNote *CalendarNote);
-GSM_Error N6110_DeleteCalendarNote(GSM_CalendarNote *CalendarNote);
+static GSM_Error N6110_GetCalendarNote(GSM_CalendarNote *CalendarNote);
+static GSM_Error N6110_WriteCalendarNote(GSM_CalendarNote *CalendarNote);
+static GSM_Error N6110_DeleteCalendarNote(GSM_CalendarNote *CalendarNote);
 
-GSM_Error N6110_NetMonitor(unsigned char mode, char *Screen);
+static GSM_Error N6110_NetMonitor(unsigned char mode, char *Screen);
 
-GSM_Error N6110_PlayTone(int Herz, u8 Volume);
+static GSM_Error N6110_PlayTone(int Herz, u8 Volume);
 
-GSM_Error N6110_SetBitmap( GSM_Bitmap *Bitmap );
-GSM_Error N6110_GetBitmap( GSM_Bitmap *Bitmap );
+static GSM_Error N6110_SetBitmap( GSM_Bitmap *Bitmap );
+static GSM_Error N6110_GetBitmap( GSM_Bitmap *Bitmap );
 
-GSM_Error N6110_SetRingTone(GSM_Ringtone *ringtone, int *maxlength);
-GSM_Error N6110_SetBinRingTone(GSM_BinRingtone *ringtone);
-GSM_Error N6110_GetBinRingTone(GSM_BinRingtone *ringtone);
+static GSM_Error N6110_SetRingTone(GSM_Ringtone *ringtone, int *maxlength);
+static GSM_Error N6110_SetBinRingTone(GSM_BinRingtone *ringtone);
+static GSM_Error N6110_GetBinRingTone(GSM_BinRingtone *ringtone);
 
-GSM_Error N6110_EnableDisplayOutput();
-GSM_Error N6110_DisableDisplayOutput();
+static GSM_Error N6110_EnableDisplayOutput();
+static GSM_Error N6110_DisableDisplayOutput();
 
-GSM_Error N6110_EnableCellBroadcast ();
-GSM_Error N6110_DisableCellBroadcast(void);
-GSM_Error N6110_ReadCellBroadcast (GSM_CBMessage *Message);
+static GSM_Error N6110_EnableCellBroadcast ();
+static GSM_Error N6110_DisableCellBroadcast(void);
+static GSM_Error N6110_ReadCellBroadcast (GSM_CBMessage *Message);
 
-GSM_Error N6110_SendDTMF(char *String);
+static GSM_Error N6110_SendDTMF(char *String);
+#endif /* UCLINUX */
 
-GSM_Error N6110_Reset(unsigned char type);
+static GSM_Error N6110_Reset(unsigned char type);
 
-GSM_Error N6110_GetProfile(GSM_Profile *Profile);
-GSM_Error N6110_SetProfile(GSM_Profile *Profile);
-bool      N6110_SendRLPFrame(RLP_F96Frame *frame, bool out_dtx);
+#ifndef UCLINUX
+static GSM_Error N6110_GetProfile(GSM_Profile *Profile);
+static GSM_Error N6110_SetProfile(GSM_Profile *Profile);
+#endif /* UCLINUX */
+static bool      N6110_SendRLPFrame(RLP_F96Frame *frame, bool out_dtx);
 
-GSM_Error N6110_CancelCall(void);
+static GSM_Error N6110_CancelCall(void);
 
-GSM_Error N6110_PressKey(int key, int event);
+#ifndef UCLINUX
+static GSM_Error N6110_PressKey(int key, int event);
 
-GSM_Error N6110_GetProductProfileSetting (GSM_PPS *PPS);
-GSM_Error N6110_SetProductProfileSetting (GSM_PPS *PPS);
+static GSM_Error N6110_GetProductProfileSetting (GSM_PPS *PPS);
+static GSM_Error N6110_SetProductProfileSetting (GSM_PPS *PPS);
 
-GSM_Error N6110_CallDivert(GSM_CallDivert *cd);
+static GSM_Error N6110_CallDivert(GSM_CallDivert *cd);
+#endif /* UCLINUX */
 
-void N6110_RX_HandleRLPMessage(u8 *MessageBuffer);
+static void N6110_RX_HandleRLPMessage(u8 *MessageBuffer);
 
-GSM_Error N6110_SendIMEIFrame();
-GSM_Error N6110_SendIDFrame();
-GSM_Error N6110_SendHWFrame();
+static GSM_Error N6110_SendIMEIFrame();
+static GSM_Error N6110_SendIDFrame();
+static GSM_Error N6110_SendHWFrame();
 
-GSM_Error N6110_EnableExtendedCommands (unsigned char status);
+static GSM_Error N6110_EnableExtendedCommands (unsigned char status);
 
-GSM_Error N6110_Tests();
+#ifndef UCLINUX
+static GSM_Error N6110_Tests();
 
-void N6110_DisplayTestsInfo(u8 *MessageBuffer);
+static void N6110_DisplayTestsInfo(u8 *MessageBuffer);
 
-GSM_Error N6110_SimlockInfo(GSM_AllSimlocks *siml);\r
-GSM_Error N6110_GetSMSFolders ( GSM_SMSFolders *folders);
+static GSM_Error N6110_SimlockInfo(GSM_AllSimlocks *siml);
+static GSM_Error N6110_GetSMSFolders ( GSM_SMSFolders *folders);
 
-GSM_Error N6110_ResetPhoneSettings();
+static GSM_Error N6110_ResetPhoneSettings();
+#endif /* UCLINUX */
 
-void N6110_Dispatch0x01Message(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+static void N6110_Dispatch0x01Message(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
 
-void N6110_ReplySendSMSMessage(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
-void N6110_ReplySetSMSCenter  (u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
-void N6110_ReplyGetSMSCenter  (u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
-void N6110_Dispatch0x02Message(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
-void N6110_ReplySetCellBroadcast (u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
-void N6110_ReplyReadCellBroadcast(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+#ifndef UCLINUX
+static void N6110_ReplySendSMSMessage(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+static void N6110_ReplySetSMSCenter  (u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+static void N6110_ReplyGetSMSCenter  (u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+static void N6110_Dispatch0x02Message(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+static void N6110_ReplySetCellBroadcast (u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+static void N6110_ReplyReadCellBroadcast(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
 
-void N6110_ReplyCallDivert    (u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
-void N6110_Dispatch0x06Message(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+static void N6110_ReplyCallDivert    (u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+static void N6110_Dispatch0x06Message(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+#endif /* UCLINUX */
 
-void N6110_ReplySetDateTime(u16 MessageLength,u8 *MessageBuffer, u8 MessageType);
-void N6110_ReplyGetDateTime(u16 MessageLength,u8 *MessageBuffer, u8 MessageType);
-void N6110_ReplySetAlarm   (u16 MessageLength,u8 *MessageBuffer, u8 MessageType);
-void N6110_ReplyGetAlarm   (u16 MessageLength,u8 *MessageBuffer, u8 MessageType);
+#ifndef UCLINUX
+static void N6110_ReplySetDateTime(u16 MessageLength,u8 *MessageBuffer, u8 MessageType);
+static void N6110_ReplyGetDateTime(u16 MessageLength,u8 *MessageBuffer, u8 MessageType);
+static void N6110_ReplySetAlarm   (u16 MessageLength,u8 *MessageBuffer, u8 MessageType);
+static void N6110_ReplyGetAlarm   (u16 MessageLength,u8 *MessageBuffer, u8 MessageType);
+#endif /* UCLINUX */
 
-void N6110_ReplyEnableExtendedCommands  (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
-void N6110_ReplyResetPhoneSettings      (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
-void N6110_ReplyIMEI                    (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
-void N6110_ReplyGetProductProfileSetting(u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
-void N6110_ReplySetProductProfileSetting(u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
-void N6110_ReplyNetmonitor              (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
-void N6110_ReplySimlockInfo             (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
-void N6110_ReplyPlayTone                (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
-void N6110_ReplyHW                      (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
-void N6110_Dispatch0x40Message          (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
+static void N6110_ReplyEnableExtendedCommands  (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
+#ifndef UCLINUX
+static void N6110_ReplyResetPhoneSettings      (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
+#endif /* UCLINUX */
+static void N6110_ReplyIMEI                    (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
+#ifndef UCLINUX
+static void N6110_ReplyGetProductProfileSetting(u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
+static void N6110_ReplySetProductProfileSetting(u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
+static void N6110_ReplyNetmonitor              (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
+static void N6110_ReplySimlockInfo             (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
+static void N6110_ReplyPlayTone                (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
+#endif /* UCLINUX */
+static void N6110_ReplyHW                      (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
+static void N6110_Dispatch0x40Message          (u16 MessageLength,u8 *MessageBuffer,u8 MessageType);
 
-void N6110_DispatchACKMessage (u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
-void N6110_ReplyID(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+static void N6110_DispatchACKMessage (u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
+static void N6110_ReplyID(u16 MessageLength, u8 *MessageBuffer, u8 MessageType);
 
-GSM_Error GSM_EncodeNokiaSMSFrame(GSM_SMSMessage *SMS, unsigned char *req, int *length, SMS_MessageType PDU);
-GSM_Error GSM_DecodeNokiaSMSFrame(GSM_SMSMessage *SMS, unsigned char *req, int length);
+#ifndef UCLINUX
+static GSM_Error GSM_EncodeNokiaSMSFrame(GSM_SMSMessage *SMS, unsigned char *req, int *length, SMS_MessageType PDU);
+static GSM_Error GSM_DecodeNokiaSMSFrame(GSM_SMSMessage *SMS, unsigned char *req, int length);
 
-int N6110_MakeCallerGroupFrame (unsigned char *req,GSM_Bitmap Bitmap);
-int N6110_MakeOperatorLogoFrame(unsigned char *req,GSM_Bitmap Bitmap);
-int N6110_MakeStartupLogoFrame (unsigned char *req,GSM_Bitmap Bitmap);
+static int N6110_MakeCallerGroupFrame (unsigned char *req,GSM_Bitmap Bitmap);
+static int N6110_MakeOperatorLogoFrame(unsigned char *req,GSM_Bitmap Bitmap);
+static int N6110_MakeStartupLogoFrame (unsigned char *req,GSM_Bitmap Bitmap);
+#endif /* UCLINUX */
 
 #endif /* __n_6110_h */