Class SoftSpiChannel
Provides a bit-banged version of a SPI channel.
Implements
Inherited Members
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. |