Exemple #1
0
 /// <summary>
 /// Initializes the SPD reader/writer device
 /// </summary>
 /// <param name="PortName">Serial port name</param>
 /// <param name="eepromAddress">EEPROM address on the device's i2c bus</param>
 /// <param name="spdSize">Total EEPROM size</param>
 public Device(string PortName, UInt8 eepromAddress, SpdSize spdSize)
 {
     this.PortName      = PortName;
     this.EepromAddress = eepromAddress;
     this.SpdSize       = spdSize;
     this.Connect();
 }
Exemple #2
0
 /// <summary>
 /// Initializes the SPD reader/writer device
 /// </summary>
 /// <param name="portSettings">Serial port settings</param>
 /// <param name="portName">Serial port name</param>
 /// <param name="i2cAddress">EEPROM address on the device's i2c bus</param>
 /// <param name="spdSize">Total EEPROM size</param>
 public Device(SerialPortSettings portSettings, string portName, UInt8 i2cAddress, SpdSize spdSize)
 {
     PortSettings = portSettings;
     PortName     = portName;
     I2CAddress   = i2cAddress;
     SpdSize      = spdSize;
 }