|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmuc.canopen.modul.CANopenDS404Modul
public class CANopenDS404Modul
Manages one module in a CAN network.
Protocol: DS-404
Constructor Summary | |
---|---|
CANopenDS404Modul(int modulID,
CANopenLib lib)
Initialize a CAN Modul. |
Method Summary | |
---|---|
int |
getChannels()
All available channels. |
int |
getDecimalDigits(int channelID)
Gets the Decimal Digits of the specific CAN |
java.lang.String |
getName()
The Name of the device e.g. |
double |
getValue(int channelID)
Gets the value of the specific CAN |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CANopenDS404Modul(int modulID, CANopenLib lib)
modulID
- ID of the modul.lib
- CANopenLib to connect.Method Detail |
---|
public double getValue(int channelID) throws java.io.IOException, TimeoutException
channelID
-
java.io.IOException
- if parameter have wrong format, or read returns wrong data, or no socket.
TimeoutException
- if read times outpublic java.lang.String getName() throws java.io.IOException, TimeoutException
java.io.IOException
- if parameter have wrong format, or read returns wrong data, or no socket.
TimeoutException
- if read times outpublic int getDecimalDigits(int channelID) throws java.io.IOException, TimeoutException
channelID
-
java.io.IOException
- if parameter have wrong format, or read returns wrong data, or no socket.
TimeoutException
- if read times outpublic int getChannels() throws TimeoutException
TimeoutException
- if read times out
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |