eBUS SDK .NET API
  • Getting Started
    • Getting started with the eBUS SDK .NET API
    • Configuring Your IDE
    • Receiving Data from a GigE Vision or USB3 Vision Transmitter
    • Sample Applications
    • GigE Vision Device Communication Parameters
    • USB3 Vision Device Communication Parameters
    • PvStream USB3 Vision Parameters
    • PvStream GigE Vision Parameters
  • eBUS SDK .NET API Reference
    • API Overview
    • eBUSDotNet
    • eBUSDotNetReceive
    • eBUSDotNetEdge
Search Results for

    Show / Hide Table of Contents
      • IPvDeviceAdapter
      • IPvDeviceAdapterSwigInterface
      • IUpdaterObserver
      • OnAcquisitionStateChanged
      • OnBufferCreated
      • OnBufferDeleted
      • OnBufferDisplay
      • OnBufferDone
      • OnBufferLog
      • OnBufferRetrieved
      • OnBufferTextOverlay
      • OnBufferTooSmall
      • OnCmdLinkRead
      • OnCmdLinkReadSafe
      • OnCmdLinkWrite
      • OnCmdLinkWriteSafe
      • OnEvent
      • OnEventGenICam
      • OnEventSafe
      • OnLinkDisconnectedHandler
      • OnLinkReconnectedHandler
      • OnReset
      • OnStart
      • OnStop
      • PvAccessType
      • PvAcquisitionState
      • PvAcquisitionStateEventSink
      • PvAcquisitionStateManager
      • PvActionAckStatusEnum
      • PvBayerFilterType
      • PvBiColorFilterType
      • PvBufferConverter
      • PvBufferConverterRGBFilter
      • PvBufferFormatType
      • PvBufferWriter
      • PvCameraBridge
      • PvCameraBridgeEventSink
      • PvCameraBridgeType
      • PvConfigurationReader
      • PvConfigurationWriter
      • PvDataReceiverType
      • PvDevice
      • PvDeviceAdapter
      • PvDeviceEventSink
      • PvDeviceEventSinkSwigInterface
      • PvDeviceGEV
      • PvDeviceI2CBus
      • PvDevicePleoraProtocol
      • PvDeviceSPIBus
      • PvDeviceSerial
      • PvDeviceSerialPort
      • PvDeviceSerialPortEchoSink
      • PvDeviceU3V
      • PvDisplayThread
      • PvGenFUUpdater
      • PvParity
      • PvPipeline
      • PvPipelineEventSink
      • PvProperty
      • PvPropertyList
      • PvSerialPortConfiguration
      • PvStream
      • PvStreamEventSink
      • PvStreamGEV
      • PvStreamInfo
      • PvStreamRTP
      • PvStreamType
      • PvStreamU3V
      • PvThreadPriority
      • PvTruesenseConverter
      • SWIGTYPE_p_IPvDeviceEventSink
      • SWIGTYPE_p_PvDeinterlacingType
      • SWIGTYPE_p_PvSessionInfoSDP
      • SWIGTYPE_p_PvStringList
      • SWIGTYPE_p_PvTapGeometryEnum
      • SWIGTYPE_p_bool
      • SWIGTYPE_p_double
      • eBUSDotNetReceive

    Class PvDeviceSPIBus

    Provides SPI bus communication over a device serial port.

    Inheritance
    object
    PvDeviceSPIBus
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: eBUSDotNetReceive
    Assembly: eBUSDotNetReceive.dll
    Syntax
    public class PvDeviceSPIBus : IDisposable

    Constructors

    View Source

    PvDeviceSPIBus()

    Constructor.

    Declaration
    public PvDeviceSPIBus()

    Fields

    View Source

    swigCMemOwn

    Determines who is responsible for deleting the underlying C++ object.

    Declaration
    protected bool swigCMemOwn
    Field Value
    Type Description
    bool

    Properties

    View Source

    IsOpened

    Gets whether the SPI bus is currently opened.

    Declaration
    public bool IsOpened { get; }
    Property Value
    Type Description
    bool

    Methods

    View Source

    BurstRead(byte[], uint, out uint)

    Performs a burst read operation over SPI.

    Declaration
    public PvResult BurstRead(byte[] aBuffer, uint aBufferSize, out uint aBytesRead)
    Parameters
    Type Name Description
    byte[] aBuffer

    Buffer to receive the read data.

    uint aBufferSize

    Maximum number of bytes to read.

    uint aBytesRead

    Number of bytes actually read.

    Returns
    Type Description
    PvResult

    Result of the operation.

    View Source

    BurstRead(byte[], uint, out uint, uint)

    Performs a burst read operation over SPI.

    Declaration
    public PvResult BurstRead(byte[] aBuffer, uint aBufferSize, out uint aBytesRead, uint aTimeout)
    Parameters
    Type Name Description
    byte[] aBuffer

    Buffer to receive the read data.

    uint aBufferSize

    Maximum number of bytes to read.

    uint aBytesRead

    Number of bytes actually read.

    uint aTimeout

    Optional timeout in milliseconds. Default is 0 (no timeout).

    Returns
    Type Description
    PvResult

    Result of the operation.

    View Source

    BurstWriteAndRead(byte[], uint)

    Performs a burst write and optional read operation over SPI.

    Declaration
    public PvResult BurstWriteAndRead(byte[] aWriteBuffer, uint aWriteBufferSize)
    Parameters
    Type Name Description
    byte[] aWriteBuffer

    Buffer containing data to write.

    uint aWriteBufferSize

    Number of bytes to write.

    Returns
    Type Description
    PvResult

    Result of the operation.

    View Source

    BurstWriteAndRead(byte[], uint, uint)

    Performs a burst write and optional read operation over SPI.

    Declaration
    public PvResult BurstWriteAndRead(byte[] aWriteBuffer, uint aWriteBufferSize, uint aReadBufferSize)
    Parameters
    Type Name Description
    byte[] aWriteBuffer

    Buffer containing data to write.

    uint aWriteBufferSize

    Number of bytes to write.

    uint aReadBufferSize

    Number of bytes to read back. Default is 0.

    Returns
    Type Description
    PvResult

    Result of the operation.

    View Source

    BurstWriteAndRead(byte[], uint, uint, bool)

    Performs a burst write and optional read operation over SPI.

    Declaration
    public PvResult BurstWriteAndRead(byte[] aWriteBuffer, uint aWriteBufferSize, uint aReadBufferSize, bool aWriteRead)
    Parameters
    Type Name Description
    byte[] aWriteBuffer

    Buffer containing data to write.

    uint aWriteBufferSize

    Number of bytes to write.

    uint aReadBufferSize

    Number of bytes to read back. Default is 0.

    bool aWriteRead

    If true, perform a write-then-read sequence. Default is false.

    Returns
    Type Description
    PvResult

    Result of the operation.

    View Source

    BurstWriteAndRead(byte[], uint, uint, bool, bool)

    Performs a burst write and optional read operation over SPI.

    Declaration
    public PvResult BurstWriteAndRead(byte[] aWriteBuffer, uint aWriteBufferSize, uint aReadBufferSize, bool aWriteRead, bool aSSNFlagOn)
    Parameters
    Type Name Description
    byte[] aWriteBuffer

    Buffer containing data to write.

    uint aWriteBufferSize

    Number of bytes to write.

    uint aReadBufferSize

    Number of bytes to read back. Default is 0.

    bool aWriteRead

    If true, perform a write-then-read sequence. Default is false.

    bool aSSNFlagOn

    If true, keep slave select asserted across transactions. Default is false.

    Returns
    Type Description
    PvResult

    Result of the operation.

    View Source

    Close()

    Closes the SPI bus connection.

    Declaration
    public PvResult Close()
    Returns
    Type Description
    PvResult

    Result of the operation.

    View Source

    Dispose()

    Dispose.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Dispose

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    View Source

    ~PvDeviceSPIBus()

    Destructor.

    Declaration
    protected ~PvDeviceSPIBus()
    View Source

    IsSupported(IPvDeviceAdapterSwigInterface, PvDeviceSerial)

    Checks if SPI communication is supported on the specified device port.

    Declaration
    public static bool IsSupported(IPvDeviceAdapterSwigInterface aDevice, PvDeviceSerial aPort = PvDeviceSerial.PvDeviceSerialBulk0)
    Parameters
    Type Name Description
    IPvDeviceAdapterSwigInterface aDevice

    The device adapter to check.

    PvDeviceSerial aPort

    The serial port to check. Default is PvDeviceSerialBulk0.

    Returns
    Type Description
    bool

    True if supported, false otherwise.

    View Source

    Open(IPvDeviceAdapterSwigInterface, PvDeviceSerial)

    Opens the SPI bus on the specified device serial port.

    Declaration
    public PvResult Open(IPvDeviceAdapterSwigInterface aDevice, PvDeviceSerial aPort = PvDeviceSerial.PvDeviceSerialBulk0)
    Parameters
    Type Name Description
    IPvDeviceAdapterSwigInterface aDevice

    The device adapter providing access to the device.

    PvDeviceSerial aPort

    The serial port to use for SPI communication. Default is PvDeviceSerialBulk0.

    Returns
    Type Description
    PvResult

    Result of the operation.

    Implements

    IDisposable
    • View Source
    In this article
    Back to top Generated by DocFX