//public static Trion.TrionError DeWeWriteDmaUart(Int32 nBoardNo, PBOARD_UART_FRAME pUartFrames, Int32 nFrameCount, Int32* nRealFrameCount); public static string DeWeErrorConstantToString(Trion.TrionError nErrorCode) { if (_dewe_error_constant_to_string != null) { return(_dewe_error_constant_to_string(nErrorCode)); } return("API_NOT_LOADED"); }
public static bool CheckError(Trion.TrionError nErrorCode) { if (nErrorCode > 0) { System.Console.WriteLine(nErrorCode.ToString()); return(true); } return(false); }
public static Trion.TrionError DeWeReadCAN(Int32 nBoardNo, ref BOARD_CAN_FRAME[] pCanFrames, Int32 nMaxFrameCount, ref Int32 nRealFrameCount) { nRealFrameCount = 0; if (_dewe_read_can != null) { Trion.TrionError error = Trion.TrionError.NONE; error = _dewe_read_can(nBoardNo, pCanFrames, nMaxFrameCount, out nRealFrameCount); return(error); } return(Trion.TrionError.API_NOT_LOADED); }
public static extern string DeWeErrorConstantToString([MarshalAs(UnmanagedType.I4)] Trion.TrionError error_code);