📄 adcdatareadyevent.java
字号:
/** * This class is automatically generated by mig. DO NOT EDIT THIS FILE. * This class implements a Java interface to the 'ADCDataReadyEvent' * message type. */package net.tinyos.sim.msg;public class ADCDataReadyEvent extends net.tinyos.message.Message { /** The default size of this message type in bytes. */ public static final int DEFAULT_MESSAGE_SIZE = 4; /** The Active Message type associated with this message. */ public static final int AM_TYPE = 3; /** Create a new ADCDataReadyEvent of size 4. */ public ADCDataReadyEvent() { super(DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** Create a new ADCDataReadyEvent of the given data_length. */ public ADCDataReadyEvent(int data_length) { super(data_length); amTypeSet(AM_TYPE); } /** * Create a new ADCDataReadyEvent with the given data_length * and base offset. */ public ADCDataReadyEvent(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); } /** * Create a new ADCDataReadyEvent using the given byte array * as backing store. */ public ADCDataReadyEvent(byte[] data) { super(data); amTypeSet(AM_TYPE); } /** * Create a new ADCDataReadyEvent using the given byte array * as backing store, with the given base offset. */ public ADCDataReadyEvent(byte[] data, int base_offset) { super(data, base_offset); amTypeSet(AM_TYPE); } /** * Create a new ADCDataReadyEvent using the given byte array * as backing store, with the given base offset and data length. */ public ADCDataReadyEvent(byte[] data, int base_offset, int data_length) { super(data, base_offset, data_length); amTypeSet(AM_TYPE); } /** * Create a new ADCDataReadyEvent embedded in the given message * at the given base offset. */ public ADCDataReadyEvent(net.tinyos.message.Message msg, int base_offset) { super(msg, base_offset, DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** * Create a new ADCDataReadyEvent embedded in the given message * at the given base offset and length. */ public ADCDataReadyEvent(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 <ADCDataReadyEvent> \n"; try { s += " [port=0x"+Long.toHexString(get_port())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [data=0x"+Long.toHexString(get_data())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } return s; } // Message-type-specific access methods appear below. ///////////////////////////////////////////////////////// // Accessor methods for field: port // Field type: short, unsigned // Offset (bits): 0 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'port' is signed (false). */ public static boolean isSigned_port() { return false; } /** * Return whether the field 'port' is an array (false). */ public static boolean isArray_port() { return false; } /** * Return the offset (in bytes) of the field 'port' */ public static int offset_port() { return (0 / 8); } /** * Return the offset (in bits) of the field 'port' */ public static int offsetBits_port() { return 0; } /** * Return the value (as a short) of the field 'port' */ public short get_port() { return (short)getUIntElement(offsetBits_port(), 8); } /** * Set the value of the field 'port' */ public void set_port(short value) { setUIntElement(offsetBits_port(), 8, value); } /** * Return the size, in bytes, of the field 'port' */ public static int size_port() { return (8 / 8); } /** * Return the size, in bits, of the field 'port' */ public static int sizeBits_port() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: data // Field type: int, unsigned // Offset (bits): 16 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'data' is signed (false). */ public static boolean isSigned_data() { return false; } /** * Return whether the field 'data' is an array (false). */ public static boolean isArray_data() { return false; } /** * Return the offset (in bytes) of the field 'data' */ public static int offset_data() { return (16 / 8); } /** * Return the offset (in bits) of the field 'data' */ public static int offsetBits_data() { return 16; } /** * Return the value (as a int) of the field 'data' */ public int get_data() { return (int)getUIntElement(offsetBits_data(), 16); } /** * Set the value of the field 'data' */ public void set_data(int value) { setUIntElement(offsetBits_data(), 16, value); } /** * Return the size, in bytes, of the field 'data' */ public static int size_data() { return (16 / 8); } /** * Return the size, in bits, of the field 'data' */ public static int sizeBits_data() { return 16; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -