public class ByteDataVariable
extends java.lang.Object
ByteDataAccessBase
-derived access class.
It is a new better concept to access single data in generated derived classes of ByteDataAccessBase.
Use the following pattern:
class MyDataAccessClass extends ByteDataAccessBase { ByteDataVariable.Int16 firstValue = new ByteByteDataVariable.Int16(this, 0); ByteDataVariable.Uint16 value2 = new ByteByteDataVariable.Int16(this, 2); }The access class may/should be generated from a header file. The positions are calculated from the header file or are countered accurately. The delegation to operations
ByteDataAccessBase.getInt16(int)
etc. are no more necessary to access.
The access can be done instead via:int val = myAccess.value2.get();The important advantage is: The values are seen in debugging via toString-implementations. With them a better view to binary data is given.
Modifier and Type | Class and Description |
---|---|
static class |
ByteDataVariable.Int16 |
static class |
ByteDataVariable.Int32
Documentation adequate valid for other sub classes.
|
static class |
ByteDataVariable.Int32Array
Documentation adequate valid for other array sub classes.
|
static class |
ByteDataVariable.Uint16 |
static class |
ByteDataVariable.Uint16Array |
static class |
ByteDataVariable.Uint32 |
static class |
ByteDataVariable.Uint32Array |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version
The version, history and license.
|
Constructor and Description |
---|
ByteDataVariable() |
public static final java.lang.String version