public static extern TPCANStatus Write( [MarshalAs(UnmanagedType.U2)] TPCANHandle Channel, ref TPCANMsg MessageBuffer);
private static extern TPCANStatus Read( [MarshalAs(UnmanagedType.U2)] TPCANHandle Channel, out TPCANMsg MessageBuffer, IntPtr bufferPointer);
/// <summary> /// Reads a CAN message from the receive queue of a PCAN Channel /// </summary> /// <param name="Channel">The handle of a PCAN Channel</param> /// <param name="MessageBuffer">A TPCANMsg structure buffer to store the CAN message</param> /// <returns>A TPCANStatus error code</returns> public static TPCANStatus Read( TPCANHandle Channel, out TPCANMsg MessageBuffer) { return(Read(Channel, out MessageBuffer, IntPtr.Zero)); }
public static extern TPCANStatus Read( [MarshalAs(UnmanagedType.U2)] TPCANHandle Channel, out TPCANMsg MessageBuffer, out TPCANTimestamp TimestampBuffer);