Exemple #1
0
        /// <summary>
        /// Check if device is compatible with this family of devices.
        /// </summary>
        /// <param name="busId">The 1-wire bus the device is found on.</param>
        /// <param name="devId">The id of the device.</param>
        /// <returns>Returns true if device is compatible.</returns>
        public static bool IsCompatible(string busId, string devId)
        {
            var family = OneWireBus.GetDeviceFamilyInternal(busId, devId);

            return(IsCompatible(family));
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OneWireDevice"/> class.
 /// </summary>
 /// <param name="busId">The 1-wire bus the device is found on.</param>
 /// <param name="devId">The id of the device.</param>
 public OneWireDevice(string busId, string devId)
 {
     BusId    = busId;
     DeviceId = devId;
     Family   = OneWireBus.GetDeviceFamilyInternal(busId, devId);
 }