// $Id: IntMsg.h,v 1.1.2.4 2003/08/26 09:08:14 cssharp Exp $ /* tab:4 * "Copyright (c) 2000-2003 The Regents of the University of California. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement is * hereby granted, provided that the above copyright notice, the following * two paragraphs and the author appear in all copies of this software. * * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS." * * Copyright (c) 2002-2003 Intel Corporation * All rights reserved. * * This file is distributed under the terms in the attached INTEL-LICENSE * file. If you do not find these files, copies can be found by writing to * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, * 94704. Attention: Intel License Inquiry. */ /* * Authors: Jason Hill, David Gay, Philip Levis * Date last modified: 6/25/02 * */ // The message type for IntToRfm/RfmToInt /** * @author Jason Hill * @author David Gay * @author Philip Levis */ typedef struct IntMsg { uint8_t year; uint8_t month; uint8_t day; uint8_t hour; uint8_t minute; uint8_t seconds; char lg; uint8_t lg_int; uint16_t lg_dec; char lt; uint8_t lt_int; uint16_t lt_dec; int src; } IntMsg; enum { HELLO = 1 }; enum { OK = 2 }; int8_t MAXGPSDATA = 120; char* GPSDATA = {"@070609030827S3301517W07134083","@070609030836S3301517W07134083","@070609030846S3301516W07134073", "@070609030856S3301480W07134069","@070609030906S3301460W07134060","@070609030916S3301466W07134001","@070609030926S3301468W07133970","@070609030936S3301466W07133969","@070609030946S3301466W07133969", "@070609030956S3301466W07133969","@070609031006S3301469W07133931","@070609031016S3301482W07133848","@070609031026S3301495W07133775","@070609031036S3301499W07133763","@070609031046S3301509W07133704", "@070609031056S3301519W07133640","@070609031106S3301529W07133568","@070609031116S3301541W07133492","@070609031126S3301552W07133414","@070609031136S3301562W07133342","@070609031146S3301561W07133344", "@070609031156S3301560W07133344","@070609031206S3301565W07133311","@070609031216S3301575W07133240","@070609031226S3301587W07133172","@070609031236S3301592W07133132","@070609031246S3301602W07133076", "@070609031256S3301617W07132999","@070609031306S3301610W07132959","@070609031316S3301573W07132952","@070609031326S3301516W07132943","@070609031336S3301454W07132931","@070609031346S3301427W07132902", "@070609031356S3301440W07132819","@070609031406S3301449W07132737","@070609031416S3301409W07132726","@070609031426S3301379W07132717","@070609031436S3301327W07132702","@070609031446S3301249W07132679", "@070609031456S3301182W07132675","@070609031506S3301138W07132662","@070609031516S3301136W07132660","@070609031526S3301131W07132657","@070609031536S3301074W07132641","@070609031546S3301007W07132622", "@070609031556S3300994W07132619","@070609031606S3300994W07132617","@070609031616S3300961W07132609","@070609031626S3300879W07132583","@070609031636S3300810W07132558","@070609031646S3300732W07132533", "@070609031656S3300654W07132509","@070609031706S3300579W07132489","@070609031716S3300541W07132551","@070609031726S3300535W07132590","@070609031736S3300533W07132605","@070609031746S3300531W07132617", "@070609031756S3300522W07132682","@070609031806S3300509W07132765","@070609031816S3300501W07132811","@070609031826S3300497W07132835","@070609031836S3300484W07132911","@070609031846S3300471W07133006", "@070609031856S3300455W07133039","@070609031906S3300442W07133057","@070609031916S3300439W07133060","@070609031926S3300440W07133058","@070609031936S3300428W07133074","@070609031946S3300429W07133072", "@070609031956S3300430W07133070","@070609032006S3300430W07133069","@070609032016S3300455W07133081","@070609032026S3300529W07133113","@070609032036S3300614W07133154","@070609032046S3300697W07133202", "@070609032056S3300766W07133248","@070609032106S3300835W07133296","@070609032116S3300905W07133355","@070609032126S3300971W07133421","@070609032136S3301032W07133484","@070609032146S3301077W07133514", "@070609032156S3301105W07133533","@070609032206S3301162W07133572","@070609032216S3301219W07133611","@070609032226S3301222W07133613","@070609032236S3301222W07133613","@070609032246S3301221W07133613", "@070609032256S3301221W07133612","@070609032306S3301220W07133612","@070609032316S3301220W07133612","@070609032326S3301219W07133612","@070609032336S3301247W07133630","@070609032346S3301297W07133663", "@070609032356S3301349W07133696","@070609032406S3301399W07133711","@070609032416S3301435W07133720","@070609032426S3301424W07133778","@070609032436S3301467W07133791","@070609032446S3301457W07133846", "@070609032456S3301444W07133919","@070609032506S3301435W07133983","@070609032516S3301435W07133985","@070609032526S3301435W07133984","@070609032536S3301438W07133984","@070609032546S3301450W07134013", "@070609032556S3301443W07134073","@070609032606S3301459W07134141","@070609032616S3301489W07134198","@070609032626S3301518W07134255","@070609032636S3301566W07134295","@070609032646S3301579W07134302", "@070609032656S3301583W07134346","@070609032706S3301584W07134396","@070609032716S3301591W07134453","@070609032726S3301631W07134450","@070609032736S3301664W07134415","@070609032746S3301709W07134375", "@070609032756S3301698W07134331","@070609032806S3301674W07134293","@070609032816S3301649W07134254","@070609032826S3301625W07134213"};