public I2CHardwareBridge(int address, II2cBusAccessor i2CBus) { if (i2CBus == null) throw new ArgumentNullException(nameof(i2CBus)); _address = address; _i2CBus = i2CBus; }
public PCF8574Driver(int address, II2cBusAccessor i2CBus) { if (i2CBus == null) throw new ArgumentNullException(nameof(i2CBus)); _address = address; _i2CBus = i2CBus; }
public HSPE16InputOnly(string id, int address, II2cBusAccessor i2cBus, INotificationHandler notificationHandler) : base(id, new MAX7311Driver(address, i2cBus), notificationHandler) { byte[] setupAsInputs = { 0x06, 0xFF, 0xFF }; i2cBus.Execute(address, b => b.Write(setupAsInputs)); FetchState(); }
public HSREL5(string id, int address, II2cBusAccessor bus, INotificationHandler notificationHandler) : base(id, new PCF8574Driver(address, bus), notificationHandler) { // Ensure that all relays are off by default. The first 5 ports are hardware inverted! The other ports are not inverted but the // connected relays are inverted. SetState(new byte[] { 0xFF }); CommitChanges(true); }
public CCToolsBoardController(II2cBusAccessor i2CBus, IOBoardManager ioBoardManager, INotificationHandler notificationHandler) { if (i2CBus == null) throw new ArgumentNullException(nameof(i2CBus)); if (ioBoardManager == null) throw new ArgumentNullException(nameof(ioBoardManager)); _i2CBus = i2CBus; _notificationHandler = notificationHandler; _ioBoardManager = ioBoardManager; }
public PCF8574ADriver(int address, II2cBusAccessor i2CBus) : base(address, i2CBus) { }
public HSPE16OutputOnly(string id, int address, II2cBusAccessor i2cBus, INotificationHandler notificationHandler) : base(id, new MAX7311Driver(address, i2cBus), notificationHandler) { CommitChanges(true); }
public HSRT16(string id, int address, II2cBusAccessor i2CBus, INotificationHandler notificationHandler) : base(id, new MAX7311Driver(address, i2CBus), notificationHandler) { SetState(new byte[] { 0x00, 0x00 }); CommitChanges(true); }
public HSPE8(string id, int address, II2cBusAccessor bus, INotificationHandler notificationHandler) : base(id, new PCF8574Driver(address, bus), notificationHandler) { FetchState(); }
public PCA9555Driver(int address, II2cBusAccessor i2CBus) : base(address, i2CBus) { }