Unosquare
    Show / Hide Table of Contents

    Class SoftSpiChannel

    Provides a bit-banged version of a SPI channel.

    Inheritance
    Object
    SoftSpiChannel
    Implements
    IDisposable
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unosquare.PiGpio.ManagedModel
    Syntax
    public sealed class SoftSpiChannel : IDisposable

    Properties

    BaudRate

    Gets the baud rate.

    Declaration
    public int BaudRate { get; }
    Property Value
    Type Description
    Int32

    ChipSelectPin

    Gets the chip select pin.

    Declaration
    public GpioPin ChipSelectPin { get; }
    Property Value
    Type Description
    GpioPin

    ClockPin

    Gets the clock pin.

    Declaration
    public GpioPin ClockPin { get; }
    Property Value
    Type Description
    GpioPin

    Flags

    Gets the flags.

    Declaration
    public SoftSpiFlags Flags { get; }
    Property Value
    Type Description
    SoftSpiFlags

    Handle

    Gets the handle.

    Declaration
    public UserGpio Handle { get; }
    Property Value
    Type Description
    UserGpio

    MisoPin

    Gets the MISO pin.

    Declaration
    public GpioPin MisoPin { get; }
    Property Value
    Type Description
    GpioPin

    MosiPin

    Gets the MOSI pin.

    Declaration
    public GpioPin MosiPin { get; }
    Property Value
    Type Description
    GpioPin

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Transfer(Byte[])

    Transfers the specified transmit buffer and returns the read bytes in a new buffer.

    Declaration
    public byte[] Transfer(byte[] transmitBuffer)
    Parameters
    Type Name Description
    Byte[] transmitBuffer

    The transmit buffer.

    Returns
    Type Description
    Byte[]

    The received bytes as a result of writing to the ring buffer.

    Implements

    System.IDisposable

    See Also

    IDisposable

    Comments

    Back to top Copyright © 2017-2019 Unosquare