コード例 #1
0
 public static extern TPCANStatus Write(
     [MarshalAs(UnmanagedType.U2)]
     TPCANHandle Channel,
     ref TPCANMsg MessageBuffer);
コード例 #2
0
 private static extern TPCANStatus Read(
     [MarshalAs(UnmanagedType.U2)]
     TPCANHandle Channel,
     out TPCANMsg MessageBuffer,
     IntPtr bufferPointer);
コード例 #3
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(
     TPCANHandle Channel,
     out TPCANMsg MessageBuffer)
 {
     return(Read(Channel, out MessageBuffer, IntPtr.Zero));
 }
コード例 #4
0
 public static extern TPCANStatus Read(
     [MarshalAs(UnmanagedType.U2)]
     TPCANHandle Channel,
     out TPCANMsg MessageBuffer,
     out TPCANTimestamp TimestampBuffer);