private void _memsControl_SelectedGyroscopeSensChanged(object sender, GyroscopeSensitivity gyroSens) { if (_device.ReadParam <DeviceState>(Parameter.State) == DeviceState.Disconnected) { return; } _device.SetParam(Parameter.GyroscopeSens, gyroSens); var updatedParam = _device.ReadParam <GyroscopeSensitivity>(Parameter.GyroscopeSens); if (updatedParam != gyroSens) { _memsControl.GyroscopeSensitivityComboValue = updatedParam; } }
private static extern int device_set_GyroscopeSens(IntPtr devicePtr, GyroscopeSensitivity gyroSens);
private static extern int device_read_GyroscopeSens(IntPtr devicePtr, out GyroscopeSensitivity outGuroSens);