Package com.pi4j.io.w1
Interface W1DeviceType
-
public interface W1DeviceTypehttp://en.wikipedia.org/wiki/1-Wire- Author:
- Peter Schuebl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description W1Devicecreate(File deviceDir)Creates a new instance of a concrete device.Class<? extends W1Device>getDeviceClass()Gets the implementation class of the device which must be a sub-class of W1DeviceintgetDeviceFamilyCode()Returns the FID of the W1 device e.g.
-
-
-
Method Detail
-
getDeviceFamilyCode
int getDeviceFamilyCode()
Returns the FID of the W1 device e.g. 0x28 for DS18B20 Each device has 48 bit (six bytes) globally unique address where last eight bits are CRC of first 56 bits. First byte stores a device family code, that identifies device type.- Returns:
- the family id of the device
-
getDeviceClass
Class<? extends W1Device> getDeviceClass()
Gets the implementation class of the device which must be a sub-class of W1Device- Returns:
- the implementation class
-
-