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