public bool WriteReadData() { var r = VLFDInterop.VLFD_IO_WriteReadData(NOW_USE_BOARD, WriteBuffer.Span, ReadBuffer.Span); if (r == false) { var msg = VLFDInterop.VLFD_GetLastErrorMsg(NOW_USE_BOARD); throw new FPGAException(msg); } return(true); }
public bool IoOpen() { var r = VLFDInterop.VLFD_IO_Open(NOW_USE_BOARD, SerialNo); if (r == false) { var msg = VLFDInterop.VLFD_GetLastErrorMsg(NOW_USE_BOARD); throw new FPGAException(msg); } return(true); }
public bool Program() { if (string.IsNullOrEmpty(BitfilePath)) { throw new ArgumentNullException("BitfilePath"); } var r = VLFDInterop.VLFD_ProgramFPGA(NOW_USE_BOARD, BitfilePath); if (r == false) { var msg = VLFDInterop.VLFD_GetLastErrorMsg(NOW_USE_BOARD); throw new FPGAException(msg); } return(true); }