GPS4Palm

Source Code Documentation


HandleMessage.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define STAT_OK   0
#define STAT_WARNING   1
#define STAT_NO_GPS   2
#define STAT_REDRAW   3
#define MSGHANDLER_SECTION   __attribute__ ((section ("msghand")))

Functions

Boolean HandleMessage (Char *message) MSGHANDLER_SECTION
void UpdateStatus (UInt16 status) MSGHANDLER_SECTION


Define Documentation

#define MSGHANDLER_SECTION   __attribute__ ((section ("msghand")))
 

Definition at line 52 of file HandleMessage.h.

#define STAT_NO_GPS   2
 

Definition at line 46 of file HandleMessage.h.

Referenced by UpdateStatus().

#define STAT_OK   0
 

Definition at line 44 of file HandleMessage.h.

Referenced by HandleMessage(), and UpdateStatus().

#define STAT_REDRAW   3
 

Definition at line 47 of file HandleMessage.h.

Referenced by MainFormHandleEvent(), MapFormHandleEvent(), NavigationFormHandleEvent(), SkyviewFormHandleEvent(), and UpdateStatus().

#define STAT_WARNING   1
 

Definition at line 45 of file HandleMessage.h.

Referenced by HandleMessage(), and UpdateStatus().


Function Documentation

Boolean HandleMessage Char *  message  ) 
 

Definition at line 195 of file HandleMessage.c.

References BatField, GPSType::cmg, CMGField, cvt_atof(), DebugForm, MapPrefsType::fetch, FETCH_READY, FETCH_START, format_number(), gGPSData, gHdFtrSet, gLastSuccessfulReception, gLastTimeDisplay, gMaxTicksWithoutTime, gNavigationH, gNextReadTime, gPrefs, GPSMainForm, gTicksPerSecond, h, icos, isin(), GPSType::lat, GPSType::lon, MagField, MapForm, PrefsType::mapprefs, NAV_R1, NAV_R2, NAV_R3, NAV_X, NAV_Y, NavigationForm, SEL_USER, MapPrefsType::select, SetFieldText(), SkyviewForm, GPSType::sog, spd_c, UnitsType::spd_unit, SpeedField, STAT_OK, STAT_WARNING, StrCopy, StrLen, GPSType::time, TimeField, PrefsType::units, UpdateStatus(), GPSType::valid, and w.

Referenced by ReadFromGPS().

void UpdateStatus UInt16  status  ) 
 

Definition at line 1067 of file HandleMessage.c.

References GPSLostStr, GPSMainForm, GPSOkStr, GPSWarnStr, MapForm, NavigationForm, NavigationStatusField, PositionStatusField, SetFieldText(), SkyviewForm, SkyViewStatusField, STAT_NO_GPS, STAT_OK, STAT_REDRAW, and STAT_WARNING.

Referenced by HandleMessage(), MainFormHandleEvent(), MapFormHandleEvent(), NavigationFormHandleEvent(), and SkyviewFormHandleEvent().


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke