00001 /* tab:4 00002 * "Copyright (c) 2000-2003 The Regents of the University of California. 00003 * All rights reserved. 00004 * 00005 * Permission to use, copy, modify, and distribute this software and its 00006 * documentation for any purpose, without fee, and without written agreement is 00007 * hereby granted, provided that the above copyright notice, the following 00008 * two paragraphs and the author appear in all copies of this software. 00009 * 00010 * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR 00011 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT 00012 * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF 00013 * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00014 * 00015 * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, 00016 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 00017 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 00018 * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO 00019 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS." 00020 * 00021 * Copyright (c) 2002-2003 Intel Corporation 00022 * All rights reserved. 00023 * 00024 * This file is distributed under the terms in the attached INTEL-LICENSE 00025 * file. If you do not find these files, copies can be found by writing to 00026 * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, 00027 * 94704. Attention: Intel License Inquiry. 00028 */ 00029 /* 00030 * Authors: Nelson Lee 00031 * Date last modified: 6/27/02 00032 * 00033 */ 00034 00035 /* Message types used by Oscope. */ 00036 00041 #ifndef OSCOPEMSG_H 00042 #define OSCOPEMSG_H 00043 00044 enum { 00045 BUFFER_SIZE = 10 00046 }; 00047 00048 typedef struct 00049 { 00050 uint16_t sourceMoteID; 00051 uint16_t lastSampleNumber; 00052 uint16_t channel; 00053 uint16_t data[BUFFER_SIZE]; 00054 }OscopeMsg; 00055 00056 typedef struct 00057 { 00058 uint16_t sourceMoteID; 00059 uint16_t lastSampleNumber; 00060 uint16_t channel; 00061 }OscopeAck; 00062 00063 struct OscopeResetMsg 00064 { 00065 /* Empty payload! */ 00066 }; 00067 00068 00069 enum { 00070 AM_OSCOPEMSG = 10, 00071 AM_OSCOPEACK = 37, 00072 AM_OSCOPERESETMSG = 32 00073 }; 00074 00075 #endif //OSCOPEMSG_H