⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uartmsgsendcommand.java

📁 nesC写的heed算法
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
     * Return the total size, in bytes, of the array 'message.data'     */    public static int totalSize_message_data() {        return (232 / 8);    }    /**     * Return the total size, in bits, of the array 'message.data'     */    public static int totalSizeBits_message_data() {        return 232;    }    /**     * Return the size, in bytes, of each element of the array 'message.data'     */    public static int elementSize_message_data() {        return (8 / 8);    }    /**     * Return the size, in bits, of each element of the array 'message.data'     */    public static int elementSizeBits_message_data() {        return 8;    }    /**     * Return the number of dimensions in the array 'message.data'     */    public static int numDimensions_message_data() {        return 1;    }    /**     * Return the number of elements in the array 'message.data'     */    public static int numElements_message_data() {        return 29;    }    /**     * Return the number of elements in the array 'message.data'     * for the given dimension.     */    public static int numElements_message_data(int dimension) {      int array_dims[] = { 29,  };        if (dimension < 0 || dimension >= 1) throw new ArrayIndexOutOfBoundsException();        if (array_dims[dimension] == 0) throw new IllegalArgumentException("Array dimension "+dimension+" has unknown size");        return array_dims[dimension];    }    /**     * Fill in the array 'message.data' with a String     */    public void setString_message_data(String s) {          int len = s.length();         int i;         for (i = 0; i < len; i++) {             setElement_message_data(i, (byte)s.charAt(i));         }         setElement_message_data(i, (byte)0); //null terminate    }    /**     * Read the array 'message.data' as a String     */    public String getString_message_data() {          char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,29)];         int i;         for (i = 0; i < carr.length; i++) {             if ((char)getElement_message_data(i) == (char)0) break;             carr[i] = (char)getElement_message_data(i);         }         return new String(carr,0,i);    }    /////////////////////////////////////////////////////////    // Accessor methods for field: message.crc    //   Field type: int    //   Offset (bits): 272    //   Size (bits): 16    /////////////////////////////////////////////////////////    /**     * Return whether the field 'message.crc' is signed (false).     */    public static boolean isSigned_message_crc() {        return false;    }    /**     * Return whether the field 'message.crc' is an array (false).     */    public static boolean isArray_message_crc() {        return false;    }    /**     * Return the offset (in bytes) of the field 'message.crc'     */    public static int offset_message_crc() {        return (272 / 8);    }    /**     * Return the offset (in bits) of the field 'message.crc'     */    public static int offsetBits_message_crc() {        return 272;    }    /**     * Return the value (as a int) of the field 'message.crc'     */    public int get_message_crc() {        return (int)getUIntElement(offsetBits_message_crc(), 16);    }    /**     * Set the value of the field 'message.crc'     */    public void set_message_crc(int value) {        setUIntElement(offsetBits_message_crc(), 16, value);    }    /**     * Return the size, in bytes, of the field 'message.crc'     */    public static int size_message_crc() {        return (16 / 8);    }    /**     * Return the size, in bits, of the field 'message.crc'     */    public static int sizeBits_message_crc() {        return 16;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: message.strength    //   Field type: int    //   Offset (bits): 288    //   Size (bits): 16    /////////////////////////////////////////////////////////    /**     * Return whether the field 'message.strength' is signed (false).     */    public static boolean isSigned_message_strength() {        return false;    }    /**     * Return whether the field 'message.strength' is an array (false).     */    public static boolean isArray_message_strength() {        return false;    }    /**     * Return the offset (in bytes) of the field 'message.strength'     */    public static int offset_message_strength() {        return (288 / 8);    }    /**     * Return the offset (in bits) of the field 'message.strength'     */    public static int offsetBits_message_strength() {        return 288;    }    /**     * Return the value (as a int) of the field 'message.strength'     */    public int get_message_strength() {        return (int)getUIntElement(offsetBits_message_strength(), 16);    }    /**     * Set the value of the field 'message.strength'     */    public void set_message_strength(int value) {        setUIntElement(offsetBits_message_strength(), 16, value);    }    /**     * Return the size, in bytes, of the field 'message.strength'     */    public static int size_message_strength() {        return (16 / 8);    }    /**     * Return the size, in bits, of the field 'message.strength'     */    public static int sizeBits_message_strength() {        return 16;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: message.ack    //   Field type: short    //   Offset (bits): 304    //   Size (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'message.ack' is signed (false).     */    public static boolean isSigned_message_ack() {        return false;    }    /**     * Return whether the field 'message.ack' is an array (false).     */    public static boolean isArray_message_ack() {        return false;    }    /**     * Return the offset (in bytes) of the field 'message.ack'     */    public static int offset_message_ack() {        return (304 / 8);    }    /**     * Return the offset (in bits) of the field 'message.ack'     */    public static int offsetBits_message_ack() {        return 304;    }    /**     * Return the value (as a short) of the field 'message.ack'     */    public short get_message_ack() {        return (short)getUIntElement(offsetBits_message_ack(), 8);    }    /**     * Set the value of the field 'message.ack'     */    public void set_message_ack(short value) {        setUIntElement(offsetBits_message_ack(), 8, value);    }    /**     * Return the size, in bytes, of the field 'message.ack'     */    public static int size_message_ack() {        return (8 / 8);    }    /**     * Return the size, in bits, of the field 'message.ack'     */    public static int sizeBits_message_ack() {        return 8;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: message.time    //   Field type: int    //   Offset (bits): 320    //   Size (bits): 16    /////////////////////////////////////////////////////////    /**     * Return whether the field 'message.time' is signed (false).     */    public static boolean isSigned_message_time() {        return false;    }    /**     * Return whether the field 'message.time' is an array (false).     */    public static boolean isArray_message_time() {        return false;    }    /**     * Return the offset (in bytes) of the field 'message.time'     */    public static int offset_message_time() {        return (320 / 8);    }    /**     * Return the offset (in bits) of the field 'message.time'     */    public static int offsetBits_message_time() {        return 320;    }    /**     * Return the value (as a int) of the field 'message.time'     */    public int get_message_time() {        return (int)getUIntElement(offsetBits_message_time(), 16);    }    /**     * Set the value of the field 'message.time'     */    public void set_message_time(int value) {        setUIntElement(offsetBits_message_time(), 16, value);    }    /**     * Return the size, in bytes, of the field 'message.time'     */    public static int size_message_time() {        return (16 / 8);    }    /**     * Return the size, in bits, of the field 'message.time'     */    public static int sizeBits_message_time() {        return 16;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: message.sendSecurityMode    //   Field type: short    //   Offset (bits): 336    //   Size (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'message.sendSecurityMode' is signed (false).     */    public static boolean isSigned_message_sendSecurityMode() {        return false;    }    /**     * Return whether the field 'message.sendSecurityMode' is an array (false).     */    public static boolean isArray_message_sendSecurityMode() {        return false;    }    /**     * Return the offset (in bytes) of the field 'message.sendSecurityMode'     */    public static int offset_message_sendSecurityMode() {        return (336 / 8);    }    /**     * Return the offset (in bits) of the field 'message.sendSecurityMode'     */    public static int offsetBits_message_sendSecurityMode() {        return 336;    }    /**     * Return the value (as a short) of the field 'message.sendSecurityMode'     */    public short get_message_sendSecurityMode() {        return (short)getUIntElement(offsetBits_message_sendSecurityMode(), 8);    }    /**     * Set the value of the field 'message.sendSecurityMode'     */    public void set_message_sendSecurityMode(short value) {        setUIntElement(offsetBits_message_sendSecurityMode(), 8, value);    }    /**     * Return the size, in bytes, of the field 'message.sendSecurityMode'     */    public static int size_message_sendSecurityMode() {        return (8 / 8);    }    /**     * Return the size, in bits, of the field 'message.sendSecurityMode'     */    public static int sizeBits_message_sendSecurityMode() {        return 8;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: message.receiveSecurityMode    //   Field type: short    //   Offset (bits): 344    //   Size (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'message.receiveSecurityMode' is signed (false).     */    public static boolean isSigned_message_receiveSecurityMode() {        return false;    }    /**     * Return whether the field 'message.receiveSecurityMode' is an array (false).     */    public static boolean isArray_message_receiveSecurityMode() {        return false;    }    /**     * Return the offset (in bytes) of the field 'message.receiveSecurityMode'     */    public static int offset_message_receiveSecurityMode() {        return (344 / 8);    }    /**     * Return the offset (in bits) of the field 'message.receiveSecurityMode'     */    public static int offsetBits_message_receiveSecurityMode() {        return 344;    }    /**     * Return the value (as a short) of the field 'message.receiveSecurityMode'     */    public short get_message_receiveSecurityMode() {        return (short)getUIntElement(offsetBits_message_receiveSecurityMode(), 8);    }    /**     * Set the value of the field 'message.receiveSecurityMode'     */    public void set_message_receiveSecurityMode(short value) {        setUIntElement(offsetBits_message_receiveSecurityMode(), 8, value);    }    /**     * Return the size, in bytes, of the field 'message.receiveSecurityMode'     */    public static int size_message_receiveSecurityMode() {        return (8 / 8);    }    /**     * Return the size, in bits, of the field 'message.receiveSecurityMode'     */    public static int sizeBits_message_receiveSecurityMode() {        return 8;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -