1 #ifndef __gsm_networks_h
2 #define __gsm_networks_h
5 * Lookup GSM network by code.
7 char *GSM_GetNetworkName(char *NetworkCode
);
10 * Lookup GSM country by code.
12 char *GSM_GetCountryName(char *CountryCode
);
27 * Network explicitely requested by user.
29 GSM_RequestingNetwork
,
31 * No network available.
35 * Network registration denied.
37 GSM_RegistrationDenied
,
39 * Uknown network status.
41 GSM_NetworkStatusUnknown
42 } GSM_NetworkInfo_State
;
45 * This structure is used to get the current network status.
49 * Name of current network.
51 unsigned char NetworkName
[15*2];
53 * State of current network.
55 GSM_NetworkInfo_State State
;
63 unsigned char CellID
[10];
65 * LAC (Local Area Code).
67 unsigned char LAC
[10];
70 void NOKIA_EncodeNetworkCode (unsigned char* buffer
, unsigned char* output
);
71 void NOKIA_DecodeNetworkCode (unsigned char* buffer
, unsigned char* output
);
74 * Information about signal quality, all these should be -1 when unknown.
78 * Signal strength in dBm
82 * Signal strength in percent.
86 * Bit error rate in percent.
93 /* How should editor hadle tabs in this file? Add editor commands here.
94 * vim: noexpandtab sw=8 ts=8 sts=8: