|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--de.wagner_ibw.iow.i2c.AbstractI2CDevice
|
+--de.wagner_ibw.iow.i2c.SD20
This is the implementation of the SD20 device "Servocontroller" by Jörg Pohl (www.roboter-teile.de))
| Field Summary | |
static int |
CLASS
Group 1 part of slave address for SD20 |
static int |
DEVICE_ADDRESS
Group 2 part of slave address for SD20 There is only one address possible. |
static int |
FIRST_SERVO_INDEX
First servo index. |
static int |
MAX_NUMBER_OF_SERVOS
Maximum number of servos. |
static java.lang.String |
NAME
SD20 device specific constants. |
| Fields inherited from class de.wagner_ibw.iow.i2c.AbstractI2CDevice |
MAX_I2C_LENGTH |
| Constructor Summary | |
SD20()
Constructor |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Indicates whether some other SD20 object is "equal to" this one. |
int |
getRevision()
|
int |
hashCode()
Returns a hash code value for this SD20 object. |
int |
read(int servo)
|
void |
setIowDevice(AbstractIowDevice iow)
Sets the reference to an IO-Warrior device for write report operations. |
java.lang.String |
toString()
Returns Information about this SD20 as String. |
void |
write(int servo,
int data)
|
| Methods inherited from class de.wagner_ibw.iow.i2c.AbstractI2CDevice |
getI2cAddress, getName, readI2C, reportReceived, setMonitor, writeI2C |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String NAME
public static final int CLASS
public static final int DEVICE_ADDRESS
public static final int MAX_NUMBER_OF_SERVOS
public static final int FIRST_SERVO_INDEX
| Constructor Detail |
public SD20()
throws java.lang.Exception
java.lang.Exception - If anything goes wrong.| Method Detail |
public int getRevision()
throws java.lang.Exception
java.lang.Exception
public int read(int servo)
throws java.lang.Exception,
java.lang.IllegalArgumentException
servo -
java.lang.Exception - If any transmission error occurred.
java.lang.IllegalArgumentException
public void write(int servo,
int data)
throws java.lang.Exception,
java.lang.IllegalArgumentException
servo - data -
java.lang.Exception - If any transmission error occurred.
java.lang.IllegalArgumentExceptionpublic void setIowDevice(AbstractIowDevice iow)
I2CDevice
setIowDevice in interface I2CDevicesetIowDevice in class AbstractI2CDeviceiow - Instance of an IO-Warrior device.public java.lang.String toString()
toString in class AbstractI2CDevicepublic boolean equals(java.lang.Object o)
equals in class AbstractI2CDevicepublic int hashCode()
hashCode in class AbstractI2CDevice
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||