Search Results for

    Show / Hide Table of Contents

    Interface ICanCommunication

    Represents a CAN communication.

    Namespace: Loehnert.Lisrt.Communication.Can
    Assembly: Loehnert.Lisrt.Communication.Can.dll
    Syntax
    [Obsolete("ICanCommunication is deprecated, use ICanCommunication2 instead.", false)]
    public interface ICanCommunication

    Methods

    Query(CanData)

    Sends and awaits any data.

    Declaration
    IEnumerable<CanData> Query(CanData data)
    Parameters
    Type Name Description
    CanData data

    Data to send.

    Returns
    Type Description
    IEnumerable<CanData>

    The first received data after the sending.

    Remarks

    Gets the data by Receive() which clears the buffer too.

    Receive()

    Gets the latest received data and clears the buffer.

    Declaration
    IEnumerable<CanData> Receive()
    Returns
    Type Description
    IEnumerable<CanData>

    Received data from the buffer.

    Send(CanData)

    Sends CanData to a device.

    Declaration
    void Send(CanData data)
    Parameters
    Type Name Description
    CanData data

    Data to send.

    Events

    DataReceived

    Occurs when data are received.

    Declaration
    event EventHandler DataReceived
    Event Type
    Type Description
    EventHandler
    Remarks

    Use Receive() to get the latest received data from the buffer.

    In This Article
    Back to top Copyright © Löhnert Elektronik GmbHlisrt.deImprint and Privacy Policy