Modifier and Type | Method and Description |
---|---|
int |
getIoCount()
Return count of I/O's for the specified port.
|
java.lang.String |
getIoName(int io)
Return name of the I/O as specified by io.
|
java.lang.String |
getName()
Returns name of the component.
|
int |
read()
Read value currently active on the port.
|
void |
setOutputEnableMask(int mask)
Set output mask.
|
java.lang.String |
toString() |
void |
write(int value)
Set output I/O's.
|
public void setOutputEnableMask(int mask) throws java.io.IOException
mask
- Mask to use, bits that have state '1' specify output direction.java.io.IOException
public int getIoCount()
public int read() throws java.io.IOException
java.io.IOException
public void write(int value) throws java.io.IOException
value
- Value to set on this port.java.io.IOException
public java.lang.String getName()
public java.lang.String getIoName(int io)
io
- I/O index in range (0 <= io < getIoCount()).public java.lang.String toString()
toString
in class java.lang.Object