|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.dalsemi.onewire.adapter.DSPortAdapter
|
+--com.dalsemi.onewire.adapter.TINIAdapter
|
+--com.dalsemi.onewire.adapter.TINIExternalAdapter
Port adapter for the TINI external one wire bus.
| Fields inherited from class com.dalsemi.onewire.adapter.TINIAdapter |
classVersion,
OW_EXTERNAL,
OW_INTERNAL,
OWDISPATCH_CANCELSTRONGPU,
OWDISPATCH_CANPROGRAM,
OWDISPATCH_DOPROGRAMPULSE,
OWDISPATCH_GETSPEED,
OWDISPATCH_GETVERSION,
OWDISPATCH_ISPRESENT,
OWDISPATCH_SETSPEED,
portSelected,
portType |
| Fields inherited from class com.dalsemi.onewire.adapter.DSPortAdapter |
CONDITION_AFTER_BIT,
CONDITION_AFTER_BYTE,
CONDITION_NOW,
DELIVERY_CURRENT_DETECT,
DELIVERY_EPROM,
DELIVERY_FOUR_SECONDS,
DELIVERY_HALF_SECOND,
DELIVERY_INFINITE,
DELIVERY_ONE_SECOND,
DELIVERY_SMART_DONE,
DELIVERY_TWO_SECONDS,
LEVEL_BREAK,
LEVEL_NORMAL,
LEVEL_POWER_DELIVERY,
LEVEL_PROGRAM,
RESET_ALARM,
RESET_NOPRESENCE,
RESET_PRESENCE,
RESET_SHORT,
SPEED_FLEX,
SPEED_HYPERDRIVE,
SPEED_OVERDRIVE,
SPEED_REGULAR |
| Constructor Summary | |
TINIExternalAdapter()
Constructor TINIExternalAdapter |
|
| Method Summary | |
boolean |
canDeliverPower()
Returns whether the adapter can physically support strong 5 volt power mode. |
boolean |
canFlex()
Returns whether the adapter can physically support flex speed mode. |
boolean |
canHyperdrive()
Returns whether the adapter can physically support hyperdrive mode. |
boolean |
canOverdrive()
Returns whether adapter can physically support overdrive mode. |
String |
getAdapterName()
Retrieve the name of the port adapter as a string. |
String |
getClassVersion()
Retrieve a version string for this class |
String |
getPortName()
Retrieve the name of the selected port as a String. |
Enumeration |
getPortNames()
Retrieve a list of the platform appropriate port names for this adapter. |
String |
getPortTypeDescription()
Retrieve a description of the port required by this port adapter. |
boolean |
selectPort(String portName)
Specify a platform appropriate port name for this adapter. |
void |
setProgramPulseDuration(int timeFactor)
Sets the duration for providing a program pulse on the 1-Wire Network. |
boolean |
startProgramPulse(int changeCondition)
Sets the 1-Wire Network voltage to eprom programming level. |
| Methods inherited from class com.dalsemi.onewire.adapter.TINIAdapter |
adapterDetected,
beginExclusive,
canProgram,
dataBlock,
endExclusive,
findFirstDevice,
findNextDevice,
freePort,
getAdapterVersion,
getAddress,
getBit,
getBlock,
getBlock,
getBlock,
getByte,
getSpeed,
isAlarming,
isPresent,
OWDispatchNative,
putBit,
putByte,
reset,
select,
setNoResetSearch,
setPowerDuration,
setPowerNormal,
setSearchAllDevices,
setSearchOnlyAlarmingDevices,
setSpeed,
startPowerDelivery |
| Methods inherited from class com.dalsemi.onewire.adapter.DSPortAdapter |
canBreak,
canDeliverSmartPower,
excludeFamily,
excludeFamily,
getAdapterAddress,
getAddressAsLong,
getAddressAsString,
getAllDeviceContainers,
getDeviceContainer,
getDeviceContainer,
getDeviceContainer,
getDeviceContainer,
getFirstDeviceContainer,
getNextDeviceContainer,
isAlarming,
isAlarming,
isPresent,
isPresent,
isValidFamily,
registerOneWireContainerClass,
select,
select,
startBreak,
targetAllFamilies,
targetFamily,
targetFamily |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TINIExternalAdapter()
| Method Detail |
public String getAdapterName()
String representation of the port adapter.public String getPortTypeDescription()
String description of the port type required.public String getClassVersion()
public Enumeration getPortNames()
OneWireException exception.String that contains the port
names
public boolean selectPort(String portName)
throws OneWireIOException,
OneWireException
PortInUseException will be thrown.portName - name of the target port, retrieved from
getPortNames()true if the port was aquired, false
if the port is not available.
public String getPortName()
throws OneWireException
String.String of selected port
public boolean canOverdrive()
throws OneWireIOException,
OneWireException
true if this port adapter can do OverDrive,
false otherwise.
public boolean canHyperdrive()
throws OneWireIOException,
OneWireException
true if this port adapter can do HyperDrive,
false otherwise.
public boolean canFlex()
throws OneWireIOException,
OneWireException
true if this port adapter can do flex speed,
false otherwise.
public boolean canDeliverPower()
throws OneWireIOException,
OneWireException
true if this port adapter can do strong 5 volt
mode, false otherwise.
public void setProgramPulseDuration(int timeFactor)
throws OneWireIOException,
OneWireException
Note: to avoid getting an exception, use the canDeliverPower() method to check it's availability.
timeFactor -
public boolean startProgramPulse(int changeCondition)
throws OneWireIOException,
OneWireException
Note: to avoid getting an exception, use the canProgram() method to check it's availability.
changeCondition - true if the voltage change was successful,
false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||