MetaWear C# SDK  1.2.0
C# API for MbientLab's sensor platform
Public Member Functions | List of all members
MbientLab.MetaWear.Peripheral.SerialPassthrough.ISPIDataProducer Interface Reference

Data received from the SPI bus More...

Inheritance diagram for MbientLab.MetaWear.Peripheral.SerialPassthrough.ISPIDataProducer:
MbientLab.MetaWear.IDataProducer

Public Member Functions

void Read (byte slaveSelectPin, byte clockPin, byte mosiPin, byte misoPin, byte mode, SpiFrequency frequency, byte[] data=null, bool lsbFirst=true, bool useNativePins=true)
 Read data via the SPI bus More...
 
- Public Member Functions inherited from MbientLab.MetaWear.IDataProducer
Task< IRouteAddRouteAsync (Action< IRouteComponent > builder)
 Adds a data route to the producer More...
 

Detailed Description

Data received from the SPI bus

Member Function Documentation

◆ Read()

void MbientLab.MetaWear.Peripheral.SerialPassthrough.ISPIDataProducer.Read ( byte  slaveSelectPin,
byte  clockPin,
byte  mosiPin,
byte  misoPin,
byte  mode,
SpiFrequency  frequency,
byte []  data = null,
bool  lsbFirst = true,
bool  useNativePins = true 
)

Read data via the SPI bus

Parameters
slaveSelectPinPin for slave select
clockPinPin for serial clock
mosiPinPin for master output, slave input
misoPinPin for master input, slave output
modeSPI operating mode, see SPI Wiki Page
frequencySPI operating frequency
dataData to write to the device before the read, defaults to null
lsbFirstTrue to have LSB sent first, defaults to true
useNativePinsTrue to use the nRF pin mappings rather than the GPIO pin mappings, defaults to true

The documentation for this interface was generated from the following file: