Characteristic Locus
Namespace Meadow.Hardware
Assembly Meadow.dll

Syntax

public interface ISpiBus

Properties

View Source

Configuration

Declaration
SpiClockConfiguration Configuration { get; }

Property Value

Type Description
SpiClockConfiguration
View Source

SupportedSpeeds

Declaration
long[] SupportedSpeeds { get; }

Property Value

Type Description
System.Int64[]

Methods

View Source

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
View Source

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
View Source

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[]
View Source

ReceiveData(IDigitalOutputPort, Int32)

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

Parameters

Type Name Description
IDigitalOutputPort chipSelect
System.Int32 numberOfBytes

Returns

Type Description
System.Byte[]
View Source

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
View Source

SendData(IDigitalOutputPort, ChipSelectMode, IEnumerable<Byte>)

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

Parameters

Type Name Description
IDigitalOutputPort chipSelect
ChipSelectMode csMode
System.Collections.Generic.IEnumerable<System.Byte> data
View Source

SendData(IDigitalOutputPort, Byte[])

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

Parameters

Type Name Description
IDigitalOutputPort chipSelect
System.Byte[] data
View Source

SendData(IDigitalOutputPort, IEnumerable<Byte>)

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

Parameters

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