private uint SetCommand(NUISENSOR_RGB_COMMAND_TYPE command, uint argument) { NUISENSOR_RGB_CHANGE_STREAM_SETTING setting; NUISENSOR_RGB_CHANGE_STREAM_SETTING_REPLY reply; setting.SequenceId = 0; setting.Commands = new NUISENSOR_RGB_CHANGE_SETTING_CMD[1]; setting.Commands[0].Cmd = (uint)command; setting.Commands[0].Arg = argument; lock (sensor) { sensor.ColorChangeCameraSettings(ref setting, out reply); } return(reply.Status[0].Data); }
private void SetCommand(NUISENSOR_RGB_COMMAND_TYPE command, float argument) { SetCommand(command, ToUInt32(argument)); }
private uint GetCommand(NUISENSOR_RGB_COMMAND_TYPE command) { return(SetCommand(command, 0)); }