public class I2CDeviceManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
busAddress_end |
static int |
busAddress_start |
static int |
I2CHardwareType_Arduino |
static int |
I2CHardwareType_FTDI |
static int |
I2CHardwareType_LINKM |
static int |
I2CHardwareType_NONE |
static int |
itsI2CHardwareType |
Constructor and Description |
---|
I2CDeviceManager() |
Modifier and Type | Method and Description |
---|---|
static void |
close_FTDI2xx()
closes the FTDI
|
static void |
close_LinkM()
closes the LinkM
|
static void |
close()
closes the i2c hardware
|
static FTDI2xx_RH |
getI2CHardware_FTDI2xx()
gets the FTDI hardware for i2c
|
static LinkM_RH |
getI2CHardware_LinkM()
gets the LinkM hardware for i2c
|
static java.lang.Object |
getI2CHardware()
gets the hardware for i2c
|
static int |
getNI2CDevices()
gets the number of i2c devices
|
static void |
initI2C_FTDI()
initializes i2c for FTDI
|
static void |
initI2C_FTDI(int devIndex)
initializes i2c for FTDI
|
static void |
initI2C_LinkM()
initializes i2c for LinkM
|
static void |
initI2C()
Initialize the I2C framework
|
static void |
listI2CDevice(int address)
lists i2c device
|
static void |
main(java.lang.String[] args)
Main method
|
static void |
releaseI2C()
releases i2c devices
|
static byte[] |
scanI2CBus_FTDI2xx()
scan the i2c bus for devices
|
static byte[] |
scanI2CBus_FTDI2xx(int startAddress,
int endAddress)
scan the i2c bus for devices
|
static byte[] |
scanI2CBus_LinkM()
scan the i2c bus for devices
|
static byte[] |
scanI2CBus_LinkM(int startAddress,
int endAddress)
scan the i2c bus for devices
|
static void |
setI2CHardware()
sets the i2c hardware
|
static void |
surveyI2CBus_FTDI2xx()
surveys the i2c bus for devices
|
static void |
surveyI2CBus_FTDI2xx(int startAddress,
int endAddress)
surveys the i2c bus for devices
|
static void |
surveyI2CBus_LinkM()
surveys the i2c bus for devices
|
static void |
surveyI2CBus_LinkM(int startAddress,
int endAddress)
surveys the i2c bus for devices
|
static void |
surveyI2CBus()
surveys the i2c bus for devices
|
public static final int I2CHardwareType_NONE
public static final int I2CHardwareType_FTDI
public static final int I2CHardwareType_LINKM
public static final int I2CHardwareType_Arduino
public static int busAddress_start
public static int busAddress_end
public static int itsI2CHardwareType
public static void initI2C() throws java.lang.Exception
java.lang.Exception
- ...public static void initI2C_FTDI() throws java.lang.Exception
java.lang.Exception
- ...public static void initI2C_FTDI(int devIndex) throws java.lang.Exception
devIndex
- the device indexjava.lang.Exception
- ...public static void initI2C_LinkM() throws java.lang.Exception
java.lang.Exception
- ...public static void releaseI2C()
public static void listI2CDevice(int address) throws java.lang.Exception
address
- the addressjava.lang.Exception
- ...public static void surveyI2CBus() throws java.lang.Exception
java.lang.Exception
- ...public static byte[] scanI2CBus_FTDI2xx() throws java.lang.Exception
java.lang.Exception
- ...public static byte[] scanI2CBus_FTDI2xx(int startAddress, int endAddress) throws java.lang.Exception
startAddress
- the starting index for the scanendAddress
- the ending index for the scanjava.lang.Exception
- ...public static void surveyI2CBus_FTDI2xx() throws java.lang.Exception
java.lang.Exception
- ...public static void surveyI2CBus_FTDI2xx(int startAddress, int endAddress) throws java.lang.Exception
startAddress
- the starting index for the scanendAddress
- the ending index for the scanjava.lang.Exception
- ...public static byte[] scanI2CBus_LinkM() throws java.lang.Exception
java.lang.Exception
- ...public static byte[] scanI2CBus_LinkM(int startAddress, int endAddress) throws java.lang.Exception
startAddress
- the starting index for the scanendAddress
- the ending index for the scanjava.lang.Exception
- ...public static void surveyI2CBus_LinkM() throws java.lang.Exception
java.lang.Exception
- ...public static void surveyI2CBus_LinkM(int startAddress, int endAddress) throws java.lang.Exception
startAddress
- the starting index for the scanendAddress
- the ending index for the scanjava.lang.Exception
- ...public static int getNI2CDevices() throws java.lang.Exception
java.lang.Exception
- ...public static void close()
public static void close_FTDI2xx()
public static void close_LinkM()
public static java.lang.Object getI2CHardware()
public static LinkM_RH getI2CHardware_LinkM()
public static FTDI2xx_RH getI2CHardware_FTDI2xx()
public static void setI2CHardware()
public static void main(java.lang.String[] args)
args
- the argumentsRH, 2017