/*
- $Id$
-
G N O K I I
A Linux/Unix toolset and driver for Nokia mobile phones.
- Copyright (C) 1999, 2000 Hugh Blemings & Pavel JanÃk ml.
-
Released under the terms of the GNU GPL, see file COPYING for more details.
Header file for GSM networks.
- $Log$
- Revision 1.1.1.1 2001/11/25 21:59:20 short
- :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
-
- Revision 1.5 2001/06/28 00:28:46 pkot
- Small docs updates (Pawel Kot)
-
-
*/
#ifndef __gsm_networks_h
#define __gsm_networks_h
+/* Define enums for RF units. GRF_CSQ asks for units in form used
+ in AT+CSQ command as defined by GSM 07.07 */
+typedef enum {
+ GRF_Arbitrary,
+ GRF_dBm,
+ GRF_mV,
+ GRF_uV,
+ GRF_CSQ,
+ GRF_Percentage
+} GSM_RFUnits;
+
+/* This structure is used to get the current network status */
+
+typedef struct {
+ char NetworkCode[10]; /* GSM network code */
+ char CellID[10]; /* CellID */
+ char LAC[10]; /* LAC */
+} GSM_NetworkInfo;
+
/* This type is used to hold information about various GSM networks. */
typedef struct {
- char *Code; /* GSM network code */
- char *Name; /* GSM network name */
+ char Code[9+1]; /* GSM network code */
+ char Name[50]; /* GSM network name */
} GSM_Network;
/* This type is used to hold information about various GSM countries. */
char *GSM_GetCountryName(char *CountryCode);
char *GSM_GetCountryCode(char *CountryName);
+void EncodeNetworkCode(unsigned char* buffer, unsigned char* output);
+void DecodeNetworkCode(unsigned char* buffer, unsigned char* output);
+
#endif /* __gsm_networks_h */