[Tinyos-2-commits] CVS: tinyos-2.x/apps/tutorials/LowPowerSensing/java Constants.class, NONE, 1.1 Constants.java, NONE, 1.1 LowPowerSensingApp.class, NONE, 1.1 LowPowerSensingApp.jar, NONE, 1.1 LowPowerSensingApp.java, NONE, 1.1 Makefile, NONE, 1.1 SerialRequestSamplesMsg.class, NONE, 1.1 SerialRequestSamplesMsg.java, NONE, 1.1 SerialSampleMsg.class, NONE, 1.1 SerialSampleMsg.java, NONE, 1.1

Kevin Klues klueska at users.sourceforge.net
Mon Sep 3 15:46:37 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/apps/tutorials/LowPowerSensing/java
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv8308/java

Added Files:
	Constants.class Constants.java LowPowerSensingApp.class 
	LowPowerSensingApp.jar LowPowerSensingApp.java Makefile 
	SerialRequestSamplesMsg.class SerialRequestSamplesMsg.java 
	SerialSampleMsg.class SerialSampleMsg.java 
Log Message:
Low Power Sensing Application initial checkin

--- NEW FILE: Constants.class ---
Êþº¾

SourceFile

--- NEW FILE: Constants.java ---
/**
 * This class is automatically generated by ncg. DO NOT EDIT THIS FILE.
 * This class includes values of some nesC constants from
 * ../LowPowerSensingConstants.h.
 */

public class Constants  {
    public static final byte MSG_QUEUE_SIZE = 50;
    public static final short SAMPLING_INTERVAL = 3000;
    public static final byte BASE_STATION_ADDR = 0;
    public static final short LPL_INTERVAL = 2000;
}

--- NEW FILE: LowPowerSensingApp.class ---
Êþº¾


















SourceFile

¶
--- NEW FILE: LowPowerSensingApp.jar ---
PK
PÿgÚ\­üW_A]B³r	ÝÂïÇ~òÜŸ«p™á5sÔq«ÁãˆL5HÌ;hV,3·¶r…¹½•«¼£âAÖ;§%ËwÐ[ùÏ]V±4%Ö½²¶ÿPK—N

n!|<4×¼¨Žôš…¢K©az>Åô³¸(ò¶)UÔtqs“Ù,S…D°#
:nnë9#£zÎõÑ/¦
hµmËVÌ*™Hµê.¬o±
WÀÅÓ[&a8.3™- ¿Tt\t‘Z£’ff–Ã̦õrâÿ ©á{µcÈ›·]«Í²Ü»æÉŒö±ÿ¯ªÂW\×å»D§t¬"e£=Q­`ÏäªäZþ88§
’ºÆ«ÐXà'Ò«<X’Ãܧ:••f÷¥
Q'ê9çGý|$àl§^ôÊ-tÛañSã‹£®BÚ~þàOk#}ÓEAëU:õÐÎyCÞ€ÏH”֐GäðkGÐI=jïP
+û ø	þŠÆ2B+‡Jj:Z𞊌™äÌuúòuÐÅϹáÈŸ½Fó>š"%È%|ò¡ü—ñÎbŒäiØ*òkÄÒÞ_†B–›ç#Ý%´pWÂgHQë”ä>Âá¶ν!™ftàiñ5÷’N`nçñfˆ;EÉ4.ÑÔ„/È®oé²¢ýUídé|b¸„Ž2:)]¸0_F÷Jä
Ú]¥Hí.ͦ»n»I¥V• J¥JÝUÝ´«îúWª~w˜Ø–[ËÒwï=çûî9÷ÜsÇ¿ÿóâ
ë8³-è–éØ}Ù2ÅWa·™úg™wÈy•¢§ÜÔò‡9‘6JyÝ/ƒW»œªm½U)TÛ;³5Df¼Bs­Þ^‘E
ØV;zÊyV[ý©B©¸/–uy•—R¢¨k¹uñII˜Vʦ™I3;&k¬"„k*IẄ†%„%D\u®*4Ó`«¹_A_í-”ô\Få&ƒ*>Dš‰…B»² ³ãG*¦0áÅG*4ì)hyäW1Š×„+ûØÅq´V²Ö
%#cÆŽöÅ¡¥AnW9·½é4fTLbBÅ>2*TÜÆÓk»‚þÆÍɦÐòLJ"%,v¿vx(ŒŒ‚›áú­ïYçülÝΊ+Q-Þn—
ßËÛ=¯ãƒìŽÍ¸a-Äb9‘†å<HvHЬsyèb—`Ÿ‹‹|í-Ä~€`¯.sýZÕú
׊¼â-c´);#AÏ)”Hžž åGZØÒù
é‚Ýè@­½æhoRÛ±#2ÐXÚ‡V¦¦:a¯—úlogdàÒ)\
´!†dØ![{£.ìè)Ü
¤#l.)®;ʰ­
´“;Ű·lmØÑFáæP{ùžâix1Ãù¬-qÄã”JobYhoõ|ˆ!€e[9?t#q’¡W9_£•Ê?qμÑíKüŒ¶íSøGOÐÞ­"'èxür œ ˜øîd5¯ûŒ×smô^„‹Õ°CFû>dzŒúYC`‹ÞôoÓ»KÿC¬ó«ÓÆ+s²ë·»ézV>Ç¶åÉ‹6Á³Èçòÿñ>'o²	ÞÄ©2ï*O ­í‘ç¸ž ÷ËZÁWÄ[åGfãÉîTϏOðJå¢ü¶ï	Úñ5Óy£>ÖÚÝ¿!ïÍ2oÀṂÁZâ·$¾ÕD½ž‘÷v¼ŸÈ{§‰_w»™%òC퇜ÂúY§¾`ˆ…ý¾†ÿqs˜uu9Aþ•sÊúÇ?™Í»õY{k“ù‹¼÷ÎÉ:TKü›8/·À¿PK·Ë8ll
Ë·Ô™,Ÿ¡¾÷
¼EPá>oˆî]Á´€k\|
ðD¿„=V‰ë(â:Ÿë*º­¶|«ç0FçÐNý\Ã-Ò·q„ÒÅ
F¨p`‹Pw·M¨]ÂÝ%Ô}Â%ðè¿Çý)VÕ¯O-M´í«Rº-K¸+uà>$ÜUýŒŸû˜p×êÀ’¼^R%ÜÚìŠKO=Ÿ˜	I¾VºL>X>ÕB‘0pZ at où€ÝºïS4ã3JçõêtÍ»N¸7J¸góxÌÀ/øfýú†p3uà
„›­#Á	7WO‚?“¤·ß
--- NEW FILE: LowPowerSensingApp.java ---
/*
 * Copyright (c) 2007 Stanford University.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * - Redistributions of source code must retain the above copyright
 *   notice, this list of conditions and the following disclaimer.
 * - Redistributions in binary form must reproduce the above copyright
 *   notice, this list of conditions and the following disclaimer in the
 *   documentation and/or other materials provided with the
 *   distribution.
 * - Neither the name of the Stanford University nor the names of
 *   its contributors may be used to endorse or promote products derived
 *   from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL STANFORD
 * UNIVERSITY OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 */

/**
 * @author Kevin Klues <klueska at cs.stanford.edu>
 * @date July 24, 2007
 */

import net.tinyos.message.*;
import net.tinyos.util.*;
import java.io.*;
/**
*/

public class LowPowerSensingApp implements MessageListener
{
  MoteIF mote;

  /* Main entry point */
  void run() {
    mote = new MoteIF(PrintStreamMessenger.err);
    mote.registerListener(new SerialSampleMsg(), this);
  }

  synchronized public void messageReceived(int dest_addr, Message msg) {
    if (msg instanceof SerialSampleMsg) {
      System.out.print(msg.toString());
    }
  }

  synchronized public void requestSamples(int addr) {
    SerialRequestSamplesMsg msg = new SerialRequestSamplesMsg();
    msg.set_addr(addr);
    try {
      mote.send(MoteIF.TOS_BCAST_ADDR, msg);
    }
    catch (IOException e) {
      System.err.println("Cannot send message to mote");
    }
  }

  public static void main(String[] args) {
    LowPowerSensingApp me = new LowPowerSensingApp();
    me.run();

    InputStreamReader cin = new InputStreamReader(System.in);
    BufferedReader in = new BufferedReader(cin);
    String input = "";

    System.out.print("Enter 's' to request samples\n");
    System.out.print(">> ");
    for(;;) {
      try {
        input = in.readLine();
        if(input.equals("s")) {
          System.out.print("Enter Address: ");
          input = in.readLine();
          me.requestSamples(Integer.parseInt(input));
        }
        else System.out.println("Invalid Input!!!!: ");
        System.out.print(">> ");
      }
      catch (IOException e) {
        System.out.print("Error On Input!!");
      }
    }
  }
}

--- NEW FILE: Makefile ---
GEN=SerialRequestSamplesMsg.java SerialSampleMsg.java Constants.java

SENSOR_DIR = universal_sensors
SENSOR_DEPS = ../$(SENSOR_DIR)/SensorSample.h

all: LowPowerSensingApp.jar

LowPowerSensingApp.jar: LowPowerSensingApp.class
	jar cf $@ *.class

SerialRequestSamplesMsg.java: ../LowPowerSensingMsgs.h $(SENSOR_DEPS)
	mig -I../$(SENSOR_DIR) -target=null \
-java-classname=SerialRequestSamplesMsg java ../LowPowerSensingMsgs.h serial_request_samples_msg -o $@

SerialSampleMsg.java: ../LowPowerSensingMsgs.h $(SENSOR_DEPS)
	mig -I../$(SENSOR_DIR) -target=null \
-java-classname=SerialSampleMsg java ../LowPowerSensingMsgs.h serial_sample_msg -o $@

Constants.java: ../LowPowerSensingConstants.h
	ncg -I../$(SENSOR_DIR) -DLOWPOWERSENSING_JAVA_MAKEFILE -target=null \
-java-classname=Constants java ../LowPowerSensingConstants.h BASE_STATION_ADDR SAMPLING_INTERVAL \
MSG_QUEUE_SIZE LPL_INTERVAL  -o $@

LowPowerSensingApp.class: $(wildcard *.java) $(GEN)
	javac *.java

clean:
	rm -f *.class $(GEN)

veryclean: clean
	rm LowPowerSensingApp.jar

--- NEW FILE: SerialRequestSamplesMsg.class ---
Êþº¾

















SourceFile

  [addr=0x

+¶
+¶

*¸


--- NEW FILE: SerialRequestSamplesMsg.java ---
/**
 * This class is automatically generated by mig. DO NOT EDIT THIS FILE.
 * This class implements a Java interface to the 'SerialRequestSamplesMsg'
 * message type.
 */

public class SerialRequestSamplesMsg extends net.tinyos.message.Message {

    /** The default size of this message type in bytes. */
    public static final int DEFAULT_MESSAGE_SIZE = 6;

    /** The Active Message type associated with this message. */
    public static final int AM_TYPE = 146;

    /** Create a new SerialRequestSamplesMsg of size 6. */
    public SerialRequestSamplesMsg() {
        super(DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /** Create a new SerialRequestSamplesMsg of the given data_length. */
    public SerialRequestSamplesMsg(int data_length) {
        super(data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialRequestSamplesMsg with the given data_length
     * and base offset.
     */
    public SerialRequestSamplesMsg(int data_length, int base_offset) {
        super(data_length, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialRequestSamplesMsg using the given byte array
     * as backing store.
     */
    public SerialRequestSamplesMsg(byte[] data) {
        super(data);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialRequestSamplesMsg using the given byte array
     * as backing store, with the given base offset.
     */
    public SerialRequestSamplesMsg(byte[] data, int base_offset) {
        super(data, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialRequestSamplesMsg using the given byte array
     * as backing store, with the given base offset and data length.
     */
    public SerialRequestSamplesMsg(byte[] data, int base_offset, int data_length) {
        super(data, base_offset, data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialRequestSamplesMsg embedded in the given message
     * at the given base offset.
     */
    public SerialRequestSamplesMsg(net.tinyos.message.Message msg, int base_offset) {
        super(msg, base_offset, DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialRequestSamplesMsg embedded in the given message
     * at the given base offset and length.
     */
    public SerialRequestSamplesMsg(net.tinyos.message.Message msg, int base_offset, int data_length) {
        super(msg, base_offset, data_length);
        amTypeSet(AM_TYPE);
    }

    /**
    /* Return a String representation of this message. Includes the
     * message type name and the non-indexed field values.
     */
    public String toString() {
      String s = "Message <SerialRequestSamplesMsg> \n";
      try {
        s += "  [addr=0x"+Long.toHexString(get_addr())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [sample_num=0x"+Long.toHexString(get_sample_num())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      return s;
    }

    // Message-type-specific access methods appear below.

    /////////////////////////////////////////////////////////
    // Accessor methods for field: addr
    //   Field type: int, unsigned
    //   Offset (bits): 0
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'addr' is signed (false).
     */
    public static boolean isSigned_addr() {
        return false;
    }

    /**
     * Return whether the field 'addr' is an array (false).
     */
    public static boolean isArray_addr() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'addr'
     */
    public static int offset_addr() {
        return (0 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'addr'
     */
    public static int offsetBits_addr() {
        return 0;
    }

    /**
     * Return the value (as a int) of the field 'addr'
     */
    public int get_addr() {
        return (int)getUIntBEElement(offsetBits_addr(), 16);
    }

    /**
     * Set the value of the field 'addr'
     */
    public void set_addr(int value) {
        setUIntBEElement(offsetBits_addr(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'addr'
     */
    public static int size_addr() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'addr'
     */
    public static int sizeBits_addr() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: sample_num
    //   Field type: long, unsigned
    //   Offset (bits): 16
    //   Size (bits): 32
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'sample_num' is signed (false).
     */
    public static boolean isSigned_sample_num() {
        return false;
    }

    /**
     * Return whether the field 'sample_num' is an array (false).
     */
    public static boolean isArray_sample_num() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'sample_num'
     */
    public static int offset_sample_num() {
        return (16 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'sample_num'
     */
    public static int offsetBits_sample_num() {
        return 16;
    }

    /**
     * Return the value (as a long) of the field 'sample_num'
     */
    public long get_sample_num() {
        return (long)getUIntBEElement(offsetBits_sample_num(), 32);
    }

    /**
     * Set the value of the field 'sample_num'
     */
    public void set_sample_num(long value) {
        setUIntBEElement(offsetBits_sample_num(), 32, value);
    }

    /**
     * Return the size, in bytes, of the field 'sample_num'
     */
    public static int size_sample_num() {
        return (32 / 8);
    }

    /**
     * Return the size, in bits, of the field 'sample_num'
     */
    public static int sizeBits_sample_num() {
        return 32;
    }

}

--- NEW FILE: SerialSampleMsg.class ---
Êþº¾



















SourceFile


+¶
+¶
+¶

*¸




--- NEW FILE: SerialSampleMsg.java ---
/**
 * This class is automatically generated by mig. DO NOT EDIT THIS FILE.
 * This class implements a Java interface to the 'SerialSampleMsg'
 * message type.
 */

public class SerialSampleMsg extends net.tinyos.message.Message {

    /** The default size of this message type in bytes. */
    public static final int DEFAULT_MESSAGE_SIZE = 8;

    /** The Active Message type associated with this message. */
    public static final int AM_TYPE = 153;

    /** Create a new SerialSampleMsg of size 8. */
    public SerialSampleMsg() {
        super(DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /** Create a new SerialSampleMsg of the given data_length. */
    public SerialSampleMsg(int data_length) {
        super(data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialSampleMsg with the given data_length
     * and base offset.
     */
    public SerialSampleMsg(int data_length, int base_offset) {
        super(data_length, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialSampleMsg using the given byte array
     * as backing store.
     */
    public SerialSampleMsg(byte[] data) {
        super(data);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialSampleMsg using the given byte array
     * as backing store, with the given base offset.
     */
    public SerialSampleMsg(byte[] data, int base_offset) {
        super(data, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialSampleMsg using the given byte array
     * as backing store, with the given base offset and data length.
     */
    public SerialSampleMsg(byte[] data, int base_offset, int data_length) {
        super(data, base_offset, data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialSampleMsg embedded in the given message
     * at the given base offset.
     */
    public SerialSampleMsg(net.tinyos.message.Message msg, int base_offset) {
        super(msg, base_offset, DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new SerialSampleMsg embedded in the given message
     * at the given base offset and length.
     */
    public SerialSampleMsg(net.tinyos.message.Message msg, int base_offset, int data_length) {
        super(msg, base_offset, data_length);
        amTypeSet(AM_TYPE);
    }

    /**
    /* Return a String representation of this message. Includes the
     * message type name and the non-indexed field values.
     */
    public String toString() {
      String s = "Message <SerialSampleMsg> \n";
      try {
        s += "  [src_addr=0x"+Long.toHexString(get_src_addr())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [sample.sample_num=0x"+Long.toHexString(get_sample_sample_num())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [sample.sin_value=0x"+Long.toHexString(get_sample_sin_value())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      return s;
    }

    // Message-type-specific access methods appear below.

    /////////////////////////////////////////////////////////
    // Accessor methods for field: src_addr
    //   Field type: int
    //   Offset (bits): 0
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'src_addr' is signed (false).
     */
    public static boolean isSigned_src_addr() {
        return false;
    }

    /**
     * Return whether the field 'src_addr' is an array (false).
     */
    public static boolean isArray_src_addr() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'src_addr'
     */
    public static int offset_src_addr() {
        return (0 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'src_addr'
     */
    public static int offsetBits_src_addr() {
        return 0;
    }

    /**
     * Return the value (as a int) of the field 'src_addr'
     */
    public int get_src_addr() {
        return (int)getUIntBEElement(offsetBits_src_addr(), 16);
    }

    /**
     * Set the value of the field 'src_addr'
     */
    public void set_src_addr(int value) {
        setUIntBEElement(offsetBits_src_addr(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'src_addr'
     */
    public static int size_src_addr() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'src_addr'
     */
    public static int sizeBits_src_addr() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: sample.sample_num
    //   Field type: long
    //   Offset (bits): 16
    //   Size (bits): 32
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'sample.sample_num' is signed (false).
     */
    public static boolean isSigned_sample_sample_num() {
        return false;
    }

    /**
     * Return whether the field 'sample.sample_num' is an array (false).
     */
    public static boolean isArray_sample_sample_num() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'sample.sample_num'
     */
    public static int offset_sample_sample_num() {
        return (16 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'sample.sample_num'
     */
    public static int offsetBits_sample_sample_num() {
        return 16;
    }

    /**
     * Return the value (as a long) of the field 'sample.sample_num'
     */
    public long get_sample_sample_num() {
        return (long)getUIntBEElement(offsetBits_sample_sample_num(), 32);
    }

    /**
     * Set the value of the field 'sample.sample_num'
     */
    public void set_sample_sample_num(long value) {
        setUIntBEElement(offsetBits_sample_sample_num(), 32, value);
    }

    /**
     * Return the size, in bytes, of the field 'sample.sample_num'
     */
    public static int size_sample_sample_num() {
        return (32 / 8);
    }

    /**
     * Return the size, in bits, of the field 'sample.sample_num'
     */
    public static int sizeBits_sample_sample_num() {
        return 32;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: sample.sin_value
    //   Field type: int
    //   Offset (bits): 48
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'sample.sin_value' is signed (false).
     */
    public static boolean isSigned_sample_sin_value() {
        return false;
    }

    /**
     * Return whether the field 'sample.sin_value' is an array (false).
     */
    public static boolean isArray_sample_sin_value() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'sample.sin_value'
     */
    public static int offset_sample_sin_value() {
        return (48 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'sample.sin_value'
     */
    public static int offsetBits_sample_sin_value() {
        return 48;
    }

    /**
     * Return the value (as a int) of the field 'sample.sin_value'
     */
    public int get_sample_sin_value() {
        return (int)getUIntBEElement(offsetBits_sample_sin_value(), 16);
    }

    /**
     * Set the value of the field 'sample.sin_value'
     */
    public void set_sample_sin_value(int value) {
        setUIntBEElement(offsetBits_sample_sin_value(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'sample.sin_value'
     */
    public static int size_sample_sin_value() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'sample.sin_value'
     */
    public static int sizeBits_sample_sin_value() {
        return 16;
    }

}



More information about the Tinyos-2-commits mailing list