public enum RegisterType extends Enum<RegisterType>
Enum Constant and Description |
---|
AXSS |
BOOTSTS |
BSPI |
CBC |
CMD |
COR0 |
COR1 |
CRC |
CTL0 |
CTL1 |
FAR |
FDRI |
FDRO |
IDCODE |
LOUT |
MASK |
MFWR |
RSVD15 |
RSVD18 |
RSVD19 |
RSVD20 |
RSVD21 |
RSVD23 |
RSVD25 |
RSVD26 |
RSVD27 |
RSVD28 |
RSVD29 |
RSVD30 |
STAT |
TIMER |
WBSTAR |
Modifier and Type | Field and Description |
---|---|
static int |
REG_ADDR_WIDTH
The number of bits in the packet header for register type
|
static RegisterType[] |
values
A static final (cached) copy of values()
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRead()
Checks if this configuration address can be read.
|
boolean |
canWrite()
Checks if this configuration address can be written to.
|
int |
getAddress()
Gets the configuration address (see register address field in packet header).
|
String |
getDescription()
A short description of the purpose of this register.
|
int |
getHeaderValue()
Gets the Register address field for a type 1 packet for this register
|
static RegisterType |
getRegisterType(int address)
Takes a register address and returns the register type.
|
static RegisterType |
getRegisterTypeFromHeader(int header)
Takes a packet type 1 header and returns the register type.
|
static RegisterType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RegisterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RegisterType CRC
public static final RegisterType FAR
public static final RegisterType FDRI
public static final RegisterType FDRO
public static final RegisterType CMD
public static final RegisterType CTL0
public static final RegisterType MASK
public static final RegisterType STAT
public static final RegisterType LOUT
public static final RegisterType COR0
public static final RegisterType MFWR
public static final RegisterType CBC
public static final RegisterType IDCODE
public static final RegisterType AXSS
public static final RegisterType COR1
public static final RegisterType RSVD15
public static final RegisterType WBSTAR
public static final RegisterType TIMER
public static final RegisterType RSVD18
public static final RegisterType RSVD19
public static final RegisterType RSVD20
public static final RegisterType RSVD21
public static final RegisterType BOOTSTS
public static final RegisterType RSVD23
public static final RegisterType CTL1
public static final RegisterType RSVD25
public static final RegisterType RSVD26
public static final RegisterType RSVD27
public static final RegisterType RSVD28
public static final RegisterType RSVD29
public static final RegisterType RSVD30
public static final RegisterType BSPI
public static int REG_ADDR_WIDTH
public static final RegisterType[] values
public static RegisterType[] values()
for (RegisterType c : RegisterType.values()) System.out.println(c);
public static RegisterType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean canRead()
public boolean canWrite()
public int getAddress()
public String getDescription()
public static RegisterType getRegisterTypeFromHeader(int header)
header
- A type 1 packet header to querypublic static RegisterType getRegisterType(int address)
address
- The register addresspublic int getHeaderValue()