|
|||||||||
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.TINIInternalAdapter
Port adapter for the TINI internal one wire bus. TINIInternalAdapter
differs from other adapters in that it is a simple port pin with a 2.2K
pull up resistor with no fancy FET pull up source.
The canDeliverPower
method will return true
,
but be aware that this only applies to single low current devices (single EEPROM,
temperature, or potentiometer).
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 | |
TINIInternalAdapter()
Constructor TINIInternalAdapter |
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. |
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,
setProgramPulseDuration,
startBreak,
startProgramPulse,
targetAllFamilies,
targetFamily,
targetFamily |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TINIInternalAdapter()
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
namespublic 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 portpublic 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |