Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

gps.c File Reference

#include "config.h"
#include "xgpsspeed.h"
#include "xgpsspeed.icon"
#include "nmea.h"
#include <unistd.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <fcntl.h>

Include dependency graph for gps.c:

Go to the source code of this file.

Defines

#define BUFSIZE   4096
#define DEFAULTPORT   "2947"
#define Offset(field)   (XtOffset(XGpsResources *, field))

Typedefs

typedef _XGpsResources XGpsResources

Functions

static void open_input (XtAppContext app)
int errexit (char *s)
int main (int argc, char **argv)
 Usage ()
void update_display ()
static void handle_input (XtPointer client_data, int *source, XtInputId *id)
int my_serial_open ()

Variables

char latd
char lond
double latitude
double longitude
int device_type
int debug = 0
Widget toplevel
Widget base
Widget tacho
Widget label
Widget title
static XrmOptionDescRec options []
XGpsResources resources
static XtResource my_resources []
String fallback_resources []


Define Documentation

#define BUFSIZE   4096
 

Definition at line 13 of file gps.c.

Referenced by handle_input().

#define DEFAULTPORT   "2947"
 

Definition at line 14 of file gps.c.

Referenced by my_serial_open().

#define Offset field   )     (XtOffset(XGpsResources *, field))
 

Definition at line 42 of file gps.c.


Typedef Documentation

typedef struct _XGpsResources XGpsResources
 


Function Documentation

static void open_input XtAppContext  app  )  [static]
 

Definition at line 200 of file gps.c.

References handle_input(), and my_serial_open().

Referenced by main().

int errexit char *  s  ) 
 

Definition at line 54 of file gps.c.

Referenced by my_serial_open().

int main int  argc,
char **  argv
 

Definition at line 61 of file gps.c.

References base, fallback_resources, label, my_resources, open_input(), options, resources, tacho, and toplevel.

Usage  ) 
 

Definition at line 115 of file gps.c.

void update_display  ) 
 

Definition at line 128 of file gps.c.

References tacho.

Referenced by handle_input().

static void handle_input XtPointer  client_data,
int *  source,
XtInputId *  id
[static]
 

Definition at line 143 of file gps.c.

References BUFSIZE, and update_display().

Referenced by open_input().

int my_serial_open  ) 
 

Definition at line 176 of file gps.c.

References DEFAULTPORT, and errexit().

Referenced by open_input().


Variable Documentation

char latd
 

Definition at line 15 of file gps.c.

char lond
 

Definition at line 15 of file gps.c.

double latitude
 

Definition at line 16 of file gps.c.

double longitude
 

Definition at line 16 of file gps.c.

int device_type
 

Definition at line 17 of file gps.c.

int debug = 0
 

Definition at line 18 of file gps.c.

Referenced by analyseACK(), analyseBeacon(), analyseCTS(), analyseData(), analyseMGMT(), analyseProbeRep(), analyseProbeReq(), analysePSPOLL(), analyseRTS(), ChangeChannel_th(), ChannelToStr(), check_keys_th(), dump_msg(), getPacketWLAN(), IDS_Var_SeqNum(), LogDetectedClient(), LogPutIsP2P(), LogPutTimestamp(), LogWriteHisto(), main(), memcpy_buff(), openCardATHEROS(), openCardCISCO(), openCardHERMES(), openCardHOSTAP(), openCardPRISM54g(), openCardWLAN(), openPacketATHEROS(), openPacketCISCO(), openPacketHERMES(), openPacketHOSTAP(), openPacketPRISM54g(), openPacketWLAN(), parse_keystring(), ParseCommandLine(), processPacket(), ProcessTagBits(), RateToString(), selectChannelATHEROS(), selectChannelHOSTAP(), selectChannelPRISM54g(), selectChannelWLAN(), shutCardATHEROS(), shutCardCISCO(), shutCardHERMES(), shutCardHOSTAP(), shutCardPRISM54g(), shutCardWLAN(), UpdateOtherInformation(), and WritePanel().

Widget toplevel
 

Definition at line 24 of file gps.c.

Referenced by main().

Widget base
 

Definition at line 24 of file gps.c.

Referenced by main().

Widget tacho
 

Definition at line 25 of file gps.c.

Referenced by main(), and update_display().

Widget label
 

Definition at line 25 of file gps.c.

Referenced by main().

Widget title
 

Definition at line 25 of file gps.c.

XrmOptionDescRec options[] [static]
 

Initial value:

 {
  {"-rv", "*reverseVideo", XrmoptionNoArg, "TRUE"},
  {"-nc", "*needleColor", XrmoptionSepArg, NULL},
  {"-needlecolor", "*needleColor", XrmoptionSepArg, NULL},
}

Definition at line 27 of file gps.c.

Referenced by main().

XGpsResources resources
 

Definition at line 40 of file gps.c.

Referenced by main().

XtResource my_resources[] [static]
 

Initial value:

 {
}

Definition at line 44 of file gps.c.

Referenced by main().

String fallback_resources[]
 

Initial value:

 {
}

Definition at line 47 of file gps.c.

Referenced by main().


Generated on Fri Feb 25 12:02:49 2005 for WifiScanner by  doxygen 1.4.1