|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.dalsemi.onewire.OneWireAccessProvider
The OneWireAccessProvider class chiefly manages the Dallas Semiconductor adapter class derivatives of DSPortAdapter. An enumeration of all available adapters will be accessed through the member function EnumerateAllAdapters. By writing software which cycles through this enumeration instead of using specific adapter classes, developers can provide code which will automatically use new adapters which have not yet been invented.
Method Summary | |
static java.util.Enumeration |
enumerateAllAdapters()
EnumerateAllAdapters returns an Enumeration of all software
port adapters. |
static DSPortAdapter |
getAdapter(java.lang.String adapterName,
java.lang.String portName)
Attempts to find, open, and verify the specified adapter on the indicated port. |
static DSPortAdapter |
getDefaultAdapter()
Attempts to find, open, and verify the default adapter and port. |
static java.lang.String |
getProperty(java.lang.String propName)
Attempts to find a onewire property. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.util.Enumeration enumerateAllAdapters()
Enumeration
of all software
port adapters. Programmers who wish to look for iButtons on all available
ports should cycle through all the DSPortAdapter objects returned
by this method.Enumeration
of all adapters in the system.public static DSPortAdapter getAdapter(java.lang.String adapterName, java.lang.String portName) throws OneWireIOException, OneWireException
adapterName,
- string name of the adapter (match to result
of call to getAdapterName() method in DSPortAdapter)portName,
- string name of the port used in the method
selectPort() in DSPortAdapterOneWireIOException
- OneWireException
- WHEN port or adapter not presentpublic static DSPortAdapter getDefaultAdapter() throws OneWireIOException, OneWireException
OneWireIOException
- OneWireException
- WHEN port or adapter not presentpublic static java.lang.String getProperty(java.lang.String propName)
propName,
- string name of the property to read
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |