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); }
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); }
public void SetParam(int register, int value) { var errorCode = Drv.spcm_dwSetParam_i32(handle, register, value); HandleError(handle, errorCode); }