-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
78 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#pragma once | ||
|
||
#include <nlohmann/json.hpp> | ||
|
||
#include "depthai-shared/xlink/XLinkConstants.hpp" | ||
|
||
namespace dai { | ||
|
||
/** | ||
* Properties for SPIIn node | ||
*/ | ||
struct SPIInProperties { | ||
/** | ||
* Name of stream | ||
*/ | ||
std::string streamName; | ||
|
||
/** | ||
* SPI bus to use | ||
*/ | ||
int busId = 0; | ||
|
||
/** | ||
* Maximum input data size | ||
*/ | ||
std::uint32_t maxDataSize = dai::XLINK_USB_BUFFER_MAX_SIZE; | ||
|
||
/** | ||
* Number of frames in pool | ||
*/ | ||
std::uint32_t numFrames = 4; | ||
}; | ||
|
||
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(SPIInProperties, streamName, busId, maxDataSize, numFrames); | ||
|
||
} // namespace dai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#pragma once | ||
|
||
#include <depthai-shared/common/ProcessorType.hpp> | ||
#include <depthai-shared/common/optional.hpp> | ||
#include <nlohmann/json.hpp> | ||
|
||
namespace dai { | ||
|
||
/** | ||
* Specify ScriptProperties options such as script uri, script name, ... | ||
*/ | ||
struct ScriptProperties { | ||
/** | ||
* Uri which points to actual script | ||
*/ | ||
std::string scriptUri = ""; | ||
|
||
/** | ||
* Name of script | ||
*/ | ||
std::string scriptName = "<script>"; | ||
|
||
/** | ||
* Which processor should execute the script | ||
*/ | ||
ProcessorType processor = ProcessorType::LEON_MSS; | ||
}; | ||
|
||
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(ScriptProperties, scriptUri, scriptName, processor); | ||
|
||
} // namespace dai |