|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICatalystSmBusService
Field Summary | |
---|---|
static 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 String SERVICE_NAME
Method Detail |
---|
void write(byte slaveAddress, byte command, byte[] data) throws Exception
slaveAddress
- the slave address to write tocommand
- the command to writedata
- the data to write
Exception
- if the write can not succeedbyte readByte(byte slaveAddress, byte command) throws Exception
slaveAddress
- the slave address to read fromcommand
- the command to send
Exception
- if the read failsshort readWord(byte slaveAddress, byte command) throws Exception
slaveAddress
- the slave address to read fromcommand
- the command to send
Exception
- if the read failsbyte[] readBlock(byte slaveAddress, byte command) throws Exception
slaveAddress
- the slave address to read fromcommand
- the command to send
Exception
- if the read failsint getLastError() throws Exception
Exception
- if there is an error reading the last errorvoid setLastError(int error) throws Exception
error
- the error code to set in the natvie library
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 |