Program Listing for File SPIInProperties.hpp

Return to documentation for file (include/depthai/properties/SPIInProperties.hpp)

#pragma once

#include "depthai/properties/Properties.hpp"
#include "depthai/xlink/XLinkConstants.hpp"

namespace dai {

struct SPIInProperties : PropertiesSerializable<Properties, SPIInProperties> {
    std::string streamName;

    int busId = 0;

    std::uint32_t maxDataSize = dai::device::XLINK_USB_BUFFER_MAX_SIZE;

    std::uint32_t numFrames = 4;

    ~SPIInProperties() override;
};

DEPTHAI_SERIALIZE_EXT(SPIInProperties, streamName, busId, maxDataSize, numFrames);

}  // namespace dai