Class SPIIn
Defined in File SPIIn.hpp
Inheritance Relationships
Base Type
public dai::DeviceNodeCRTP< DeviceNode, SPIIn, SPIInProperties >(Template Class DeviceNodeCRTP)
Class Documentation
-
class SPIIn : public dai::DeviceNodeCRTP<DeviceNode, SPIIn, SPIInProperties>
SPIIn node. Receives messages over SPI.
Public Functions
-
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.
-
virtual void buildInternal() override
Function called from within the
createfunction to build the node. This function is useful for initialization, setting up inputs and outputs = stuff that cannot be perform in the constuctor.
-
inline DeviceNodeCRTP()
-
inline DeviceNodeCRTP(std::unique_ptr<Properties> props)
-
inline DeviceNodeCRTP(std::unique_ptr<Properties> props, bool confMode)
Public Members
-
Output out = {*this, {"out", DEFAULT_GROUP, {{{DatatypeEnum::Buffer, true}}}}}
Outputs message of same type as send from host.
Public Static Attributes
-
static constexpr const char *NAME = "SPIIn"
-
void setStreamName(const std::string &name)