Characteristic Locus
Namespace Meadow.Hardware
Assembly Meadow.Core.NetStandard.dll

Syntax

public interface ISpiBus

Properties

Configuration

Declaration
SpiClockConfiguration Configuration { get; }

Property Value

Type Description
SpiClockConfiguration

SupportedSpeeds

Declaration
long[] SupportedSpeeds { get; }

Property Value

Type Description
System.Int64[]

Methods

ExchangeData(IDigitalOutputPort, ChipSelectMode, Byte[], Byte[])

Declaration
void ExchangeData(IDigitalOutputPort chipSelect, ChipSelectMode csMode, byte[] sendBuffer, byte[] receiveBuffer)

Parameters

Type Name Description
IDigitalOutputPort chipSelect
ChipSelectMode csMode
System.Byte[] sendBuffer
System.Byte[] receiveBuffer

ExchangeData(IDigitalOutputPort, ChipSelectMode, Byte[], Byte[], Int32)

Declaration
void ExchangeData(IDigitalOutputPort chipSelect, ChipSelectMode csMode, byte[] sendBuffer, byte[] receiveBuffer, int bytesToExchange)

Parameters

Type Name Description
IDigitalOutputPort chipSelect
ChipSelectMode csMode
System.Byte[] sendBuffer
System.Byte[] receiveBuffer
System.Int32 bytesToExchange

ReceiveData(IDigitalOutputPort, ChipSelectMode, Int32)

Declaration
byte[] ReceiveData(IDigitalOutputPort chipSelect, ChipSelectMode csMode, int numberOfBytes)

Parameters

Type Name Description
IDigitalOutputPort chipSelect
ChipSelectMode csMode
System.Int32 numberOfBytes

Returns

Type Description
System.Byte[]

ReceiveData(IDigitalOutputPort, Int32)

Declaration
byte[] ReceiveData(IDigitalOutputPort chipSelect, int numberOfBytes)

Parameters

Type Name Description
IDigitalOutputPort chipSelect
System.Int32 numberOfBytes

Returns

Type Description
System.Byte[]

SendData(IDigitalOutputPort, IEnumerable<Byte>)

Declaration
void SendData(IDigitalOutputPort chipSelect, IEnumerable<byte> data)

Parameters

Type Name Description
IDigitalOutputPort chipSelect
IEnumerable<System.Byte> data

SendData(IDigitalOutputPort, ChipSelectMode, IEnumerable<Byte>)

Declaration
void SendData(IDigitalOutputPort chipSelect, ChipSelectMode csMode, IEnumerable<byte> data)

Parameters

Type Name Description
IDigitalOutputPort chipSelect
ChipSelectMode csMode
IEnumerable<System.Byte> data

SendData(IDigitalOutputPort, ChipSelectMode, Byte[])

Declaration
void SendData(IDigitalOutputPort chipSelect, ChipSelectMode csMode, params byte[] data)

Parameters

Type Name Description
IDigitalOutputPort chipSelect
ChipSelectMode csMode
System.Byte[] data

SendData(IDigitalOutputPort, Byte[])

Declaration
void SendData(IDigitalOutputPort chipSelect, params byte[] data)

Parameters

Type Name Description
IDigitalOutputPort chipSelect
System.Byte[] data