5 A Linux/Unix toolset and driver for Nokia mobile phones.
7 Released under the terms of the GNU GPL, see file COPYING for more details.
9 Header file for GSM networks.
13 #ifndef __gsm_networks_h
14 #define __gsm_networks_h
16 /* Define enums for RF units. GRF_CSQ asks for units in form used
17 in AT+CSQ command as defined by GSM 07.07 */
27 /* This structure is used to get the current network status */
30 char NetworkCode[10]; /* GSM network code */
31 char CellID[10]; /* CellID */
32 char LAC[10]; /* LAC */
35 /* This type is used to hold information about various GSM networks. */
38 char Code[9+1]; /* GSM network code */
39 char Name[50]; /* GSM network name */
42 /* This type is used to hold information about various GSM countries. */
45 char *Code; /* GSM country code */
46 char *Name; /* GSM country name */
49 /* These functions are used to search the structure defined above.*/
50 char *GSM_GetNetworkName(char *NetworkCode);
51 char *GSM_GetNetworkCode(char *NetworkName);
53 char *GSM_GetCountryName(char *CountryCode);
54 char *GSM_GetCountryCode(char *CountryName);
56 void EncodeNetworkCode(unsigned char* buffer, unsigned char* output);
57 void DecodeNetworkCode(unsigned char* buffer, unsigned char* output);
59 #endif /* __gsm_networks_h */