public class SimpleRegister extends SynchronizedAbstractRegister implements Register
The setValue() method is synchronized, which ensures atomic access, but no specific access order.
m_Register| Constructor and Description |
|---|
SimpleRegister()
Constructs a new SimpleRegister instance.
|
SimpleRegister(byte b1,
byte b2)
Constructs a new SimpleRegister instance.
|
SimpleRegister(int value)
Constructs a new SimpleRegister instance
with the given value.
|
getValue, setValue, setValue, setValue, toBytes, toShort, toUnsignedShortclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValue, toBytes, toShort, toUnsignedShortpublic SimpleRegister()
public SimpleRegister(byte b1,
byte b2)
b1 - the first (hi) byte of the word.b2 - the second (low) byte of the word.public SimpleRegister(int value)
value - the value of this SimpleRegister as int.Copyright © 2017. All rights reserved.