示例#1
0
        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);
        }
示例#2
0
 private void SetCommand(NUISENSOR_RGB_COMMAND_TYPE command, float argument)
 {
     SetCommand(command, ToUInt32(argument));
 }
示例#3
0
 private uint GetCommand(NUISENSOR_RGB_COMMAND_TYPE command)
 {
     return(SetCommand(command, 0));
 }