Class SPIIn

Inheritance Relationships

Base Type

Class Documentation

class SPIIn : public dai::NodeCRTP<Node, SPIIn, SPIInProperties>

SPIIn node. Receives messages over SPI.

Public Functions

SPIIn(const std::shared_ptr<PipelineImpl> &par, int64_t nodeId)
SPIIn(const std::shared_ptr<PipelineImpl> &par, int64_t nodeId, std::unique_ptr<Properties> props)
void setStreamName(const std::string &name)

Specifies stream name over which the node will receive data

Parameters:

name – Stream name

void setBusId(int id)

Specifies SPI Bus number to use

Parameters:

id – SPI Bus id

void setMaxDataSize(std::uint32_t maxDataSize)

Set maximum message size it can receive

Parameters:

maxDataSize – Maximum size in bytes

void setNumFrames(std::uint32_t numFrames)

Set number of frames in pool for sending messages forward

Parameters:

numFrames – Maximum number of frames in pool

std::string getStreamName() const

Get stream name.

int getBusId() const

Get bus id.

std::uint32_t getMaxDataSize() const

Get maximum messages size in bytes.

std::uint32_t getNumFrames() const

Get number of frames in pool.

Public Members

Output out = {*this, "out", Output::Type::MSender, {{DatatypeEnum::Buffer, true}}}

Outputs message of same type as send from host.

Public Static Attributes

static constexpr const char *NAME = "SPIIn"