Gammu internals  1.38.0
atgen.h File Reference
#include <gammu-types.h>
#include <gammu-error.h>
#include <gammu-statemachine.h>
#include "../../gsmreply.h"
#include "../../misc/misc.h"
#include "motorola.h"
Include dependency graph for atgen.h:

Go to the source code of this file.

Data Structures

struct  GSM_AT_SMS_Cache
 
struct  GSM_Phone_ATGENData
 

Macros

#define GSM_USED_AT
 
#define GSM_USED_BLUEAT
 
#define GSM_USED_IRDAAT
 
#define MAX_VCALENDAR_LOCATION   50
 
#define GSM_AT_MAXPDULEN   400
 
#define AT_PBK_MAX_MEMORIES   200
 
#define ATGEN_WaitForAutoLen(s, cmd, type, time, request)   ATGEN_WaitFor(s, cmd, strlen(cmd), type, time, request)
 

Enumerations

enum  GSM_AT_SMS_Modes { SMS_AT_PDU = 1, SMS_AT_TXT }
 
enum  GSM_AT_Reply_State {
  AT_Reply_OK = 1, AT_Reply_Connect, AT_Reply_Error, AT_Reply_Unknown,
  AT_Reply_CMSError, AT_Reply_CMEError, AT_Reply_SMSEdit
}
 
enum  GSM_AT_Manufacturer {
  AT_Nokia = 1, AT_Alcatel, AT_Siemens, AT_HP,
  AT_Falcom, AT_Ericsson, AT_Sagem, AT_Samsung,
  AT_Mitsubishi, AT_Sharp, AT_Option, AT_Motorola,
  AT_Wavecom, AT_Philips, AT_Huawei, AT_Qualcomm,
  AT_ZTE, AT_Unknown
}
 
enum  GSM_AT_Charset {
  AT_CHARSET_HEX = 1, AT_CHARSET_GSM, AT_CHARSET_UCS2, AT_CHARSET_UCS_2,
  AT_CHARSET_UTF8, AT_CHARSET_UTF_8, AT_CHARSET_PCCP437, AT_CHARSET_IRA,
  AT_CHARSET_ASCII, AT_CHARSET_ISO88591, AT_CHARSET_ISO88592, AT_CHARSET_ISO88593,
  AT_CHARSET_ISO88594, AT_CHARSET_ISO88595, AT_CHARSET_ISO88596
}
 
enum  GSM_AT_Charset_Preference {
  AT_PREF_CHARSET_NORMAL = 1, AT_PREF_CHARSET_UNICODE, AT_PREF_CHARSET_IRA, AT_PREF_CHARSET_GSM,
  AT_PREF_CHARSET_RESET
}
 
enum  GSM_AT_Feature { AT_AVAILABLE = 1, AT_NOTAVAILABLE }
 
enum  GSM_SamsungCalendar { SAMSUNG_NONE = 1, SAMSUNG_ORG, SAMSUNG_SSH }
 
enum  GSM_AT_NeededMemoryInfo {
  AT_Status, AT_NextEmpty, AT_Total, AT_First,
  AT_Sizes
}
 

Functions

GSM_Error ATGEN_HandleCMSError (GSM_StateMachine *s)
 
GSM_Error ATGEN_HandleCMEError (GSM_StateMachine *s)
 
GSM_Error ATGEN_DispatchMessage (GSM_StateMachine *s)
 
GSM_Error ATGEN_WaitFor (GSM_StateMachine *s, const char *cmd, size_t len, int type, int time, GSM_Phone_RequestID request)
 
GSM_Error ATGEN_ParseReply (GSM_StateMachine *s, const unsigned char *input, const char *format,...)
 
GSM_Error ATGEN_EncodeText (GSM_StateMachine *s, const unsigned char *input, const size_t inlength, unsigned char *output, const size_t outlength, size_t *resultlength)
 
GSM_Error ATGEN_DecodeText (GSM_StateMachine *s, const unsigned char *input, const size_t length, unsigned char *output, const size_t outlength, const gboolean guess, const gboolean phone)
 
GSM_Error ATGEN_SetCharset (GSM_StateMachine *s, GSM_AT_Charset_Preference Prefer)
 
int ATGEN_ExtractOneParameter (unsigned char *input, unsigned char *output)
 
GSM_Error ATGEN_DecodeDateTime (GSM_StateMachine *s, GSM_DateTime *dt, unsigned char *_input)
 

Detailed Description

Author
Michal Čihař
Marcin Wiacek

Definition in file atgen.h.