ON THIS PAGE

  • SPIOut
  • How to place it
  • Inputs and Outputs
  • Usage
  • Examples of functionality
  • Reference

SPIOut

SPIOut node is used for sending data to a MCU (via SPI). You can find demos here.SPIIn is used for receiving data from the MCU (via SPI).

How to place it

Python
C++

Python

Python
1pipeline = dai.Pipeline()
2spi = pipeline.create(dai.node.SPIOut)

Inputs and Outputs

Usage

Python
C++

Python

Python
1pipeline = dai.Pipeline()
2spi = pipeline.create(dai.node.SPIOut)
3
4spi.setStreamName("spimetaout")
5spi.setBusId(0)

Examples of functionality

Reference

class

dai::node::SPIOut

#include SPIOut.hpp
variable
Input input
Input for any type of messages to be transferred over SPI stream Default queue is blocking with size 8
inline function
void setStreamName(std::string name)
Specifies stream name over which the node will send data
Parameters
  • name: Stream name
inline function
void setBusId(int busId)
Specifies SPI Bus number to use
Parameters
  • id: SPI Bus id
inline function
void buildInternal()
inline function
DeviceNodeCRTP()
inline function
DeviceNodeCRTP(const std::shared_ptr< Device > & device)
inline function
DeviceNodeCRTP(std::unique_ptr< Properties > props)
inline function
DeviceNodeCRTP(std::unique_ptr< Properties > props, bool confMode)
inline function
DeviceNodeCRTP(const std::shared_ptr< Device > & device, std::unique_ptr< Properties > props, bool confMode)

Need assistance?

Head over to Discussion Forum for technical support or any other questions you might have.