示例#1
0
 private static extern TPCANStatus Read(
     [MarshalAs(UnmanagedType.U2)] ushort Channel,
     out TpcanMsg MessageBuffer,
     IntPtr bufferPointer);
示例#2
0
 /// <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(ushort Channel, out TpcanMsg MessageBuffer)
 {
     return(Read(Channel, out MessageBuffer, IntPtr.Zero));
 }
示例#3
0
 public static extern TPCANStatus Write(
     [MarshalAs(UnmanagedType.U2)] ushort Channel,
     ref TpcanMsg MessageBuffer);
示例#4
0
 public static extern TPCANStatus Read(
     [MarshalAs(UnmanagedType.U2)] ushort Channel,
     out TpcanMsg MessageBuffer,
     out TpcanTimestamp TimestampBuffer);