示例#1
0
 private static extern int device_set_ExternalSwitchState(IntPtr devicePtr, ExternalSwitchInput extSwitch);
示例#2
0
        private void _electrodesControl_ExternalSwitchComboSelectedChanged(object sender, ExternalSwitchInput selectedInput)
        {
            if (_device.ReadParam <DeviceState>(Parameter.State) == DeviceState.Disconnected)
            {
                return;
            }

            _device.SetParam(Parameter.ExternalSwitchState, selectedInput);

            var updatedParam = _device.ReadParam <ExternalSwitchInput>(Parameter.ExternalSwitchState);

            if (updatedParam != selectedInput)
            {
                _electrodesControl.SwitchStateComboValue = updatedParam;
            }
        }
示例#3
0
 private static extern int device_read_ExternalSwitchState(IntPtr devicePtr, out ExternalSwitchInput outExtSwitch);