public static extern TPCANStatus GetValue( [MarshalAs(UnmanagedType.U1)] TPCANHandle Channel, [MarshalAs(UnmanagedType.U1)] TPCANParameter Parameter, StringBuilder StringBuffer, UInt32 BufferLength);
public static extern TPCANStatus FilterMessages( [MarshalAs(UnmanagedType.U1)] TPCANHandle Channel, UInt32 FromID, UInt32 ToID, [MarshalAs(UnmanagedType.U1)] TPCANMode Mode);
public static extern TPCANStatus SetValue( [MarshalAs(UnmanagedType.U1)] TPCANHandle Channel, [MarshalAs(UnmanagedType.U1)] TPCANParameter Parameter, ref UInt32 NumericBuffer, UInt32 BufferLength);
internal PCANAdapter(PCAN parent, string identification, TPCANHandle handle) { m_parent = parent; m_identification = identification; m_handle = handle; m_onlyChannel = new PCANChannel(this); }
public static extern TPCANStatus SetValue( [MarshalAs(UnmanagedType.U1)] TPCANHandle Channel, [MarshalAs(UnmanagedType.U1)] TPCANParameter Parameter, [MarshalAs(UnmanagedType.LPStr, SizeParamIndex = 3)] string StringBuffer, UInt32 BufferLength);
internal PCANChannel(PCANAdapter adapter) { m_parent = adapter; m_mode = ChannelMode.Extended; m_handle = adapter.Handle; m_receivers = new List <IReceiveEntity>(); m_receivers.Add(m_noQueueReceived); }
public static extern TPCANStatus Initialize( [MarshalAs(UnmanagedType.U1)] TPCANHandle Channel, [MarshalAs(UnmanagedType.U2)] TPCANBaudrate Btr0Btr1, [MarshalAs(UnmanagedType.U1)] TPCANType HwType, UInt32 IOPort, UInt16 Interrupt);
public static extern TPCANStatus Uninitialize( [MarshalAs(UnmanagedType.U1)] TPCANHandle Channel);
public static extern TPCANStatus InitializeFD( [MarshalAs(UnmanagedType.U2)] TPCANHandle Channel, TPCANBitrateFD BitrateFD);
public static extern TPCANStatus Reset( [MarshalAs(UnmanagedType.U2)] TPCANHandle Channel);
private static extern TPCANStatus ReadFD( [MarshalAs(UnmanagedType.U2)] TPCANHandle Channel, out TPCANMsgFD MessageBuffer, IntPtr TimestampBuffer);
public static extern TPCANStatus Write( [MarshalAs(UnmanagedType.U1)] TPCANHandle Channel, ref TPCANMsg MessageBuffer);
/// <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)); }
private static extern TPCANStatus Read( [MarshalAs(UnmanagedType.U1)] TPCANHandle Channel, out TPCANMsg MessageBuffer, IntPtr bufferPointer);
public static extern TPCANStatus Read( [MarshalAs(UnmanagedType.U1)] TPCANHandle Channel, out TPCANMsg MessageBuffer, out TPCANTimestamp TimestampBuffer);
public static extern TPCANStatus GetStatus( [MarshalAs(UnmanagedType.U1)] TPCANHandle Channel);
/// <summary> /// Initializes a PCAN Channel /// </summary> /// <param name="Channel">The handle of a PCAN Channel</param> /// <param name="Btr0Btr1">The speed for the communication (BTR0BTR1 code)</param> /// <returns>A TPCANStatus error code</returns> public static TPCANStatus Initialize( TPCANHandle Channel, TPCANBaudrate Btr0Btr1) { return(Initialize(Channel, Btr0Btr1, (TPCANType)0, 0, 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); }
/// <summary> /// Initializes a PCAN Channel /// </summary> /// <param name="Channel">The handle of a PCAN Channel</param> /// <param name="Btr0Btr1">The speed for the communication (BTR0BTR1 code)</param> /// <returns>A TPCANStatus error code</returns> public static TPCANStatus Initialize( TPCANHandle Channel, TPCANBaudrate Btr0Btr1) { return Initialize(Channel, Btr0Btr1, (TPCANType)0, 0, 0); }