public void InitializeController() { //SimpleIOClass.ConfigureMCP2200(0xFF, 115200, 0, 0, false, false, false, false); if (!SimpleIOClass.IsConnected()) { SimpleIOClass.InitMCP2200(VendorID, ProductID); } }
public void InitializeAll() { SimpleIOClass.InitMCP2200(VendorID, ProductID); _deviceCount = SimpleIOClass.GetNoOfDevices(); for (uint i = 0; i < _deviceCount; i++) { _controllers.Add(new DIO8_MCP22(i)); _controllers[(int)i].InitializeController(); _controllers[(int)i].Interrupt += new ICtrl_PortStateChanged(DIO8_MCP22_Manager_Interrupt); } }