|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cesys.cebo.cebomsr.DigitalPort
public final class DigitalPort
Offers functionality to work with digital ports. Direct construction
is not possible. Instances can be retrieved calling getDigitalPorts() of
the respective Device
instance.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |