Interface W1DeviceType


  • public interface W1DeviceType
    http://en.wikipedia.org/wiki/1-Wire
    Author:
    Peter Schuebl
    • 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
      • create

        W1Device create​(File deviceDir)
        Creates a new instance of a concrete device.
        Parameters:
        deviceDir -
        Returns: