Exemplo n.º 1
0
        private uint Get_Data()
        {
            uint errorCode = Drv.spcm_dwSetParam_i32(H_Device, Regs.SPC_M2CMD, Regs.M2CMD_DATA_STARTDMA | Regs.M2CMD_DATA_WAITDMA);

            Communication_LOG += "Get Data:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Exemplo n.º 2
0
        public bool WaitDma()
        {
            var errorCode = Drv.spcm_dwSetParam_i32(handle, Regs.SPC_M2CMD, Regs.M2CMD_DATA_WAITDMA);

            if (errorCode == Error.ERR_TIMEOUT)
            {
                return(false);
            }
            if (errorCode != 0)
            {
                ThrowSpcmException(handle);
            }

            return(true);
        }
Exemplo n.º 3
0
        public void SetParam(int register, int value)
        {
            var errorCode = Drv.spcm_dwSetParam_i32(handle, register, value);

            HandleError(handle, errorCode);
        }