<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>DTN Reference Implementation: OscopeMsg.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <h1>OscopeMsg.h</h1><a href="OscopeMsg_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> * Copyright 2005-2006 Intel Corporation</span> <a name="l00003"></a>00003 <span class="comment"> * </span> <a name="l00004"></a>00004 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span> <a name="l00005"></a>00005 <span class="comment"> * you may not use this file except in compliance with the License.</span> <a name="l00006"></a>00006 <span class="comment"> * You may obtain a copy of the License at</span> <a name="l00007"></a>00007 <span class="comment"> * </span> <a name="l00008"></a>00008 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span> <a name="l00009"></a>00009 <span class="comment"> * </span> <a name="l00010"></a>00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span> <a name="l00011"></a>00011 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span> <a name="l00012"></a>00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span> <a name="l00013"></a>00013 <span class="comment"> * See the License for the specific language governing permissions and</span> <a name="l00014"></a>00014 <span class="comment"> * limitations under the License.</span> <a name="l00015"></a>00015 <span class="comment"> */</span> <a name="l00016"></a>00016 <a name="l00017"></a>00017 <span class="comment">/* tab:4</span> <a name="l00018"></a>00018 <span class="comment"> * "Copyright (c) 2000-2003 The Regents of the University of California. </span> <a name="l00019"></a>00019 <span class="comment"> * All rights reserved.</span> <a name="l00020"></a>00020 <span class="comment"> *</span> <a name="l00021"></a>00021 <span class="comment"> * Permission to use, copy, modify, and distribute this software and its</span> <a name="l00022"></a>00022 <span class="comment"> * documentation for any purpose, without fee, and without written agreement is</span> <a name="l00023"></a>00023 <span class="comment"> * hereby granted, provided that the above copyright notice, the following</span> <a name="l00024"></a>00024 <span class="comment"> * two paragraphs and the author appear in all copies of this software.</span> <a name="l00025"></a>00025 <span class="comment"> * </span> <a name="l00026"></a>00026 <span class="comment"> * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR</span> <a name="l00027"></a>00027 <span class="comment"> * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT</span> <a name="l00028"></a>00028 <span class="comment"> * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF</span> <a name="l00029"></a>00029 <span class="comment"> * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span> <a name="l00030"></a>00030 <span class="comment"> * </span> <a name="l00031"></a>00031 <span class="comment"> * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,</span> <a name="l00032"></a>00032 <span class="comment"> * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY</span> <a name="l00033"></a>00033 <span class="comment"> * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS</span> <a name="l00034"></a>00034 <span class="comment"> * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO</span> <a name="l00035"></a>00035 <span class="comment"> * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."</span> <a name="l00036"></a>00036 <span class="comment"> *</span> <a name="l00037"></a>00037 <span class="comment"> * Copyright (c) 2002-2003 Intel Corporation</span> <a name="l00038"></a>00038 <span class="comment"> * All rights reserved.</span> <a name="l00039"></a>00039 <span class="comment"> *</span> <a name="l00040"></a>00040 <span class="comment"> * This file is distributed under the terms in the attached INTEL-LICENSE </span> <a name="l00041"></a>00041 <span class="comment"> * file. If you do not find these files, copies can be found by writing to</span> <a name="l00042"></a>00042 <span class="comment"> * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, </span> <a name="l00043"></a>00043 <span class="comment"> * 94704. Attention: Intel License Inquiry.</span> <a name="l00044"></a>00044 <span class="comment"> */</span> <a name="l00045"></a>00045 <span class="comment">/*</span> <a name="l00046"></a>00046 <span class="comment"> * Authors: Nelson Lee</span> <a name="l00047"></a>00047 <span class="comment"> * Date last modified: 6/27/02</span> <a name="l00048"></a>00048 <span class="comment"> *</span> <a name="l00049"></a>00049 <span class="comment"> */</span> <a name="l00050"></a>00050 <a name="l00051"></a>00051 <span class="comment">/* Message types used by Oscope. */</span> <a name="l00052"></a>00052 <a name="l00057"></a>00057 <span class="preprocessor">#ifndef OSCOPEMSG_H</span> <a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#define OSCOPEMSG_H</span> <a name="l00059"></a>00059 <span class="preprocessor"></span> <a name="l00060"></a>00060 <span class="keyword">enum</span> { <a name="l00061"></a><a class="code" href="OscopeMsg_8h.html#0411cd49bb5b71852cecd93bcbf0ca2d1a63387ea87dae07937bf38548748733">00061</a> <a class="code" href="OscopeMsg_8h.html#0411cd49bb5b71852cecd93bcbf0ca2d1a63387ea87dae07937bf38548748733">BUFFER_SIZE</a> = 10 <a name="l00062"></a>00062 }; <a name="l00063"></a>00063 <a name="l00064"></a><a class="code" href="structOscopeMsg.html">00064</a> <span class="keyword">typedef</span> <span class="keyword">struct </span> <a name="l00065"></a>00065 { <a name="l00066"></a><a class="code" href="structOscopeMsg.html#221a687096f820994f4a33e19f488b0c">00066</a> uint16_t sourceMoteID; <a name="l00067"></a><a class="code" href="structOscopeMsg.html#a515841d75b29179e49f225d5bbaaa3b">00067</a> uint16_t lastSampleNumber; <a name="l00068"></a><a class="code" href="structOscopeMsg.html#fd083da497c94fc3b357bc05100be86d">00068</a> uint16_t channel; <a name="l00069"></a><a class="code" href="structOscopeMsg.html#a3aa95c3a794fece51152602f3ed6444">00069</a> uint16_t data[<a class="code" href="OscopeMsg_8h.html#0411cd49bb5b71852cecd93bcbf0ca2d1a63387ea87dae07937bf38548748733">BUFFER_SIZE</a>]; <a name="l00070"></a>00070 }<a class="code" href="structOscopeMsg.html">OscopeMsg</a>; <a name="l00071"></a>00071 <a name="l00072"></a><a class="code" href="structOscopeAck.html">00072</a> <span class="keyword">typedef</span> <span class="keyword">struct </span> <a name="l00073"></a>00073 { <a name="l00074"></a><a class="code" href="structOscopeAck.html#53209daa76e46ad97fe20c277e059e02">00074</a> uint16_t sourceMoteID; <a name="l00075"></a><a class="code" href="structOscopeAck.html#76c6f2ce388798e558e6ec23516eaf6c">00075</a> uint16_t lastSampleNumber; <a name="l00076"></a><a class="code" href="structOscopeAck.html#be664b6347c9e8fb795f010564cb08a6">00076</a> uint16_t channel; <a name="l00077"></a>00077 }<a class="code" href="structOscopeAck.html">OscopeAck</a>; <a name="l00078"></a>00078 <a name="l00079"></a><a class="code" href="structOscopeResetMsg.html">00079</a> <span class="keyword">struct </span><a class="code" href="structOscopeResetMsg.html">OscopeResetMsg</a> <a name="l00080"></a>00080 { <a name="l00081"></a>00081 <span class="comment">/* Empty payload! */</span> <a name="l00082"></a>00082 }; <a name="l00083"></a>00083 <a name="l00084"></a>00084 <a name="l00085"></a>00085 <span class="keyword">enum</span> { <a name="l00086"></a><a class="code" href="OscopeMsg_8h.html#bed82baf7f470b522273a3e37c24c6005b505a6f402f6cb002c38c6f450f703b">00086</a> <a class="code" href="OscopeMsg_8h.html#bed82baf7f470b522273a3e37c24c6005b505a6f402f6cb002c38c6f450f703b">AM_OSCOPEMSG</a> = 10, <a name="l00087"></a><a class="code" href="OscopeMsg_8h.html#bed82baf7f470b522273a3e37c24c600a227dae3b247a95fec37e45830d172c4">00087</a> <a class="code" href="OscopeMsg_8h.html#bed82baf7f470b522273a3e37c24c600a227dae3b247a95fec37e45830d172c4">AM_OSCOPEACK</a> = 37, <a name="l00088"></a><a class="code" href="OscopeMsg_8h.html#bed82baf7f470b522273a3e37c24c600366e2fc9ff0b522df5382697832b1c39">00088</a> <a class="code" href="OscopeMsg_8h.html#bed82baf7f470b522273a3e37c24c600366e2fc9ff0b522df5382697832b1c39">AM_OSCOPERESETMSG</a> = 32 <a name="l00089"></a>00089 }; <a name="l00090"></a>00090 <a name="l00091"></a>00091 <span class="preprocessor">#endif //OSCOPEMSG_H</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Jul 21 14:09:46 2008 for DTN Reference Implementation by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>