public IrixiMotionController(string DeviceSN = "") { // Generate the instance of the state report object HidReport = new DeviceStateReport(); FirmwareInfo = new FimwareInfo(); PCA9534Info = new PCA9534Info(); TotalAxes = -1; SerialNumber = DeviceSN; AxisCollection = new ObservableCollection <Axis>(); //BindingOperations.EnableCollectionSynchronization(AxisCollection, _lock); hidPort = new HIDUSBDevice(VID, PID, DeviceSN); }
/// <summary> /// read the value of PCA9534 /// </summary> /// <returns></returns> public bool ReadPCA9534() { Request(EnumCommand.REQ_READ9534_STA, out byte[] buff); if (buff == null) { return(false); } else { return(PCA9534Info.Parse(buff)); } }