[Firebug-cvs] fireboard/fireboard/sensors/leadtek9546 leadtek_9546.h,1.2,1.3
Brought to you by:
doolin
From: <do...@pr...> - 2004-01-23 01:09:11
|
Update of /cvsroot/firebug/fireboard/fireboard/sensors/leadtek9546 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24537/leadtek9546 Modified Files: leadtek_9546.h Log Message: All of the sensor drivers appear to be working correctly. Index: leadtek_9546.h =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/sensors/leadtek9546/leadtek_9546.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** leadtek_9546.h 15 Jan 2004 03:22:25 -0000 1.2 --- leadtek_9546.h 23 Jan 2004 01:08:26 -0000 1.3 *************** *** 78,83 **** ! #ifndef GPS_H ! #define GPS_H // The actual values for each of these may vary, --- 78,83 ---- ! #ifndef LEADTEK_9546_H ! #define LEADTEK_9546_H // The actual values for each of these may vary, *************** *** 102,116 **** #define NMEA_END2 "\n" //0x0A //ultimate byte of NMEA string ! #define NMEA_GSV_MASK 0x0001 ! #define NMEA_GSA_MASK 0x0002 ! #define NMEA_ZDA_MASK 0x0004 ! #define NMEA_PPS_MASK 0x0010 ! #define NMEA_FOM_MASK 0x0020 ! #define NMEA_GLL_MASK 0x1000 #define NMEA_GGA_MASK "0x2000" #define NMEA_VTG_MASK "0x4000" #define NMEA_RMC_MASK "0x8000" ! // This isn't used yet, but should be. #define GPS_POWER_OFF 0 #define GPS_POWER_ON 1 --- 102,125 ---- #define NMEA_END2 "\n" //0x0A //ultimate byte of NMEA string ! #define NMEA_GSV_MASK "0x0001" ! #define NMEA_GSA_MASK "0x0002" ! #define NMEA_ZDA_MASK "0x0004" ! #define NMEA_PPS_MASK "0x0010" ! #define NMEA_FOM_MASK "0x0020" ! #define NMEA_GLL_MASK "0x1000" #define NMEA_GGA_MASK "0x2000" #define NMEA_VTG_MASK "0x4000" #define NMEA_RMC_MASK "0x8000" ! ! /** ! * The leadtek has several different power states. ! * Each of these states should be documented here, ! * and a value defined to use when setting. These ! * values just control the switch. The power states ! * should be useful for setting the power and for ! * querying the driver code as to which power state ! * the unit is currently set at. ! */ #define GPS_POWER_OFF 0 #define GPS_POWER_ON 1 *************** *** 122,129 **** * Predefined "programs" useful for setting various states * of the GPS unit. These are all in NMEA format. */ //const uint8_t gps_gga_mask[] = {"$PLTC,NMEA," NMEA_GGA_MASK NMEA_END1 NMEA_END2}; //const uint8_t gps_rmc_mask[] = {"$PLTC,NMEA," NMEA_RMC_MASK NMEA_END1 NMEA_END2}; ! //const uint8_t gps_syncmode_on[] = {"$PLTC,SYNCMODE,1" NMEA_END1 NMEA_END2}; const uint8_t gps_syncmode_off[] = {"$LTC,SYNCMODE,0" NMEA_END1 NMEA_END2}; --- 131,139 ---- * Predefined "programs" useful for setting various states * of the GPS unit. These are all in NMEA format. + * FIXME: Find out what leadtek uses for a proprietary header string. */ //const uint8_t gps_gga_mask[] = {"$PLTC,NMEA," NMEA_GGA_MASK NMEA_END1 NMEA_END2}; //const uint8_t gps_rmc_mask[] = {"$PLTC,NMEA," NMEA_RMC_MASK NMEA_END1 NMEA_END2}; ! const uint8_t gps_syncmode_on[] = {"$LTC,SYNCMODE,1" NMEA_END1 NMEA_END2}; const uint8_t gps_syncmode_off[] = {"$LTC,SYNCMODE,0" NMEA_END1 NMEA_END2}; *************** *** 158,163 **** ! ! ! ! #endif --- 168,170 ---- ! #endif /* LEADTEK_9546_H */ |