Functions | Variables
cphidgetgps.c File Reference
#include "stdafx.h"
#include "cphidgetgps.h"
#include "cusb.h"
#include "csocket.h"
#include "cthread.h"
#include <math.h>
Include dependency graph for cphidgetgps.c:

Go to the source code of this file.

Functions

static int checkcrc (char *data, int crc)
 CUSBSendPacket ((CPhidgetHandle) phid, buffer)
 if (phid->fix==PUNK_BOOL) phid->fix = PFALSE
 if ()
 if (phid->fix!=PUNK_BOOL)
static int parse_GPS_packets (CPhidgetGPSInfo *phid)
 parse_GPS_packets (phid)
static int parse_NMEA_data (char *data, CPhidgetGPSInfo *phid)
static int parse_SkyTraq_response (unsigned char *data, CPhidgetGPSInfo *phid)
ZEROMEMphid (NMEAData)
 TESTPTR (phid)
 while ((phid->fix==PUNK_BOOL||phid->haveTime==PUNK_BOOL||phid->haveDate==PUNK_BOOL)&&readtries)
 ZEROMEM (phid->sckbuf, 256)

Variables

phid altitude = PUNK_DBL
unsigned char buffer [8] = { 0 }
return EPHIDGET_OK
phid fix = PUNI_BOOL
phid haveDate = PUNK_BOOL
phid haveTime = PUNK_BOOL
phid heading = PUNK_DBL
int i = 0
phid lastAltitude = PUNK_DBL
phid lastFix = PUNK_BOOL
phid lastLatitude = PUNK_DBL
phid lastLongitude = PUNK_DBL
phid latitude = PUNK_DBL
phid longitude = PUNK_DBL
int readtries = 30
phid sckbuf_read = 0
phid sckbuf_write = 0
phid velocity = PUNK_DBL

Function Documentation

static int checkcrc ( char *  data,
int  crc 
) [static]
CUSBSendPacket ( (CPhidgetHandle phid,
buffer   
)
if ( phid->  fix = =PUNK_BOOL) = PFALSE

Definition at line 179 of file cphidgetrfid.c.

if ( )

Definition at line 96 of file cphidgetgps.c.

if ( phid->fix!  = PUNK_BOOL)

Definition at line 114 of file cphidgetgps.c.

static int parse_GPS_packets ( CPhidgetGPSInfo phid) [static]

Definition at line 407 of file cphidgetgps.c.

static int parse_NMEA_data ( char *  data,
CPhidgetGPSInfo phid 
) [static]

Definition at line 138 of file cphidgetgps.c.

static int parse_SkyTraq_response ( unsigned char *  data,
CPhidgetGPSInfo phid 
) [static]

Definition at line 363 of file cphidgetgps.c.

TESTPTR ( phid  )

Definition at line 81 of file cphidgetgps.c.

ZEROMEM ( phid->  sckbuf,
256   
)

Variable Documentation

Definition at line 21 of file cphidgetgps.c.

buffer[2] = { 0 }

Definition at line 34 of file cphidgetgps.c.

return EPHIDGET_OK

Definition at line 28 of file cphidgetgps.c.

Definition at line 17 of file cphidgetgps.c.

Definition at line 26 of file cphidgetgps.c.

Definition at line 25 of file cphidgetgps.c.

Definition at line 19 of file cphidgetgps.c.

int i = 0

Definition at line 94 of file cphidgetgps.c.

Definition at line 45 of file cphidgetgps.c.

Definition at line 42 of file cphidgetgps.c.

Definition at line 43 of file cphidgetgps.c.

Definition at line 44 of file cphidgetgps.c.

Definition at line 22 of file cphidgetgps.c.

Definition at line 23 of file cphidgetgps.c.

readtries = 30

Definition at line 35 of file cphidgetgps.c.

Definition at line 38 of file cphidgetgps.c.

Definition at line 39 of file cphidgetgps.c.

Definition at line 20 of file cphidgetgps.c.



pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:21