public static final class MMIODeviceConfig.RawRegisterConfig extends MMIODeviceConfig.RawMemoryConfig
RawRegisterConfig class encapsulates the configuration parameters of a register.| Constructor and Description |
|---|
MMIODeviceConfig.RawRegisterConfig(int offset,
java.lang.String name,
int type)
Constructs a new
RawRegisterConfig with the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
int |
getType()
Gets the configured type of the value held by the register.
|
getName, getOffsetpublic MMIODeviceConfig.RawRegisterConfig(int offset,
java.lang.String name,
int type)
RawRegisterConfig with the provided parameters.offset - the offset of the register from the base address (a positive or null integer).name - the name for the register.type - the type of the value held by the register, one of: MMIODeviceConfig.REGISTER_TYPE_BYTE,
MMIODeviceConfig.REGISTER_TYPE_SHORT or MMIODeviceConfig.REGISTER_TYPE_INT.java.lang.IllegalArgumentException - if any of the following is true:
offset is lesser than 0;type is not one of the defined values.java.lang.NullPointerException - if name is null.public int getType()
MMIODeviceConfig.REGISTER_TYPE_BYTE,
MMIODeviceConfig.REGISTER_TYPE_SHORT or MMIODeviceConfig.REGISTER_TYPE_INT.Copyright (c) 1990, 2013, Oracle and/or its affiliates. All rights reserved.