Exemplo n.º 1
0
 public static extern TPCANStatus Write(
     [MarshalAs(UnmanagedType.U2)]
     TPCANHandle Channel,
     ref TPCANMsg MessageBuffer);
Exemplo n.º 2
0
 private static extern TPCANStatus Read(
     [MarshalAs(UnmanagedType.U2)]
     TPCANHandle Channel,
     out TPCANMsg MessageBuffer,
     IntPtr bufferPointer);
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 public static extern TPCANStatus Read(
     [MarshalAs(UnmanagedType.U2)]
     TPCANHandle Channel,
     out TPCANMsg MessageBuffer,
     out TPCANTimestamp TimestampBuffer);