|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICatalystSmBusService
| Field Summary | |
|---|---|
static java.lang.String |
SERVICE_NAME
|
| Method Summary | |
|---|---|
int |
getLastError()
gets the last error provided by the SMBus native library |
byte[] |
readBlock(byte slaveAddress,
byte command)
reads a block of bytes from the SMBus |
byte |
readByte(byte slaveAddress,
byte command)
reads a byte from the SMBus |
short |
readWord(byte slaveAddress,
byte command)
reads a 16 bit word from the SMBus |
void |
setLastError(int error)
sets the last error in the SMBus native library |
void |
write(byte slaveAddress,
byte command,
byte[] data)
writes data to the SMbus |
| Field Detail |
|---|
static final java.lang.String SERVICE_NAME
| Method Detail |
|---|
void write(byte slaveAddress,
byte command,
byte[] data)
throws java.lang.Exception
slaveAddress - the slave address to write tocommand - the command to writedata - the data to write
java.lang.Exception - if the write can not succeed
byte readByte(byte slaveAddress,
byte command)
throws java.lang.Exception
slaveAddress - the slave address to read fromcommand - the command to send
java.lang.Exception - if the read fails
short readWord(byte slaveAddress,
byte command)
throws java.lang.Exception
slaveAddress - the slave address to read fromcommand - the command to send
java.lang.Exception - if the read fails
byte[] readBlock(byte slaveAddress,
byte command)
throws java.lang.Exception
slaveAddress - the slave address to read fromcommand - the command to send
java.lang.Exception - if the read fails
int getLastError()
throws java.lang.Exception
java.lang.Exception - if there is an error reading the last error
void setLastError(int error)
throws java.lang.Exception
error - the error code to set in the natvie library
java.lang.Exception - if there is an error setting the error code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||