docs.unity3d.com
    Show / Hide Table of Contents

    Class CommBusDriver

    Driver specification for handling CommMessage.

    Inheritance
    Object
    IPortFilter<Byte[]>
    BusDriver
    CommBusDriver
    Inherited Members
    BusDriver._address
    BusDriver._callback
    BusDriver._port
    BusDriver.Send(Byte, Byte[])
    BusDriver.Join(Byte, BusDriver.MessageHandler)
    BusDriver.Leave(BusDriver.MessageHandler)
    BusDriver.Process(IPortType, Byte[], IPortFilter<Byte[]>)
    IPortFilter<Byte[]>.Process(IPortType, Byte[], IPortFilter<Byte[]>)
    IPortFilter<Byte[]>.Item[Int32]
    IPortFilter<Byte[]>.Size
    Namespace: Mechatronics.SensorSDK
    Syntax
    public class CommBusDriver : BusDriver

    Constructors

    CommBusDriver(PortType<Byte[]>)

    Initialize the driver.

    Declaration
    public CommBusDriver(PortType<byte[]> port)
    Parameters
    Type Name Description
    PortType<Byte[]> port

    Port to initialize the driver on.

    Methods

    Join(Byte, CommBusDriver.CommMessageHandler)

    Join the bus and listen to data.

    Declaration
    public void Join(byte address, CommBusDriver.CommMessageHandler handler)
    Parameters
    Type Name Description
    Byte address

    Address to listen to .

    CommBusDriver.CommMessageHandler handler

    Handler to process data.

    Leave(CommBusDriver.CommMessageHandler)

    Clean up and exit the handler callback.

    Declaration
    public void Leave(CommBusDriver.CommMessageHandler handler)
    Parameters
    Type Name Description
    CommBusDriver.CommMessageHandler handler

    Data handling callback.

    Send(Byte, CommMessage)

    Send a CommMessage.

    Declaration
    public void Send(byte toAddress, CommMessage message)
    Parameters
    Type Name Description
    Byte toAddress

    Address to send to.

    CommMessage message

    Message structure.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023