gsmGetAntennaMode (Function) |
Top Previous Next |
This function returns which antenna is used, and the current selection mode set by the gsmSetAntennaMode function.
Input: None.
Output: mode : SINT
active : SINT
Returns: INT
Declaration: FUNCTION gsmGetAntennaMode : INT;
Example: INCLUDE rtcu.inc str : STRING; IF gsmGetAntennaMode(mode := mode, active := used) = 0 THEN str := "GSM Antenna: Not supported"; ELSE str := "GSM Antenna: "; CASE mode OF 1: str := str + "mode=Internal"; 2: str := str + "mode=External"; 3: str := str + "mode=Dip switch"; END_CASE; CASE used OF 1: str := str + ", used=Internal"; 2: str := str + ", used=External"; END_CASE; END_IF; DebugMsg(message := str); ... |