Skip to content

Commit 0854139

Browse files
committed
Documentation
Signed-off-by: stas.bucik <[email protected]>
1 parent 71caf73 commit 0854139

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

bindings/python/src/pipeline/CommonBindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void CommonBindings::bind(pybind11::module& m, void* pCallstack) {
225225

226226
// M8FsyncRole enum bindings
227227
m8FsyncRole.value("AUTO_DETECT", M8FsyncRole::AUTO_DETECT)
228-
.value("MASTER_WITHOUT_OUTPUT", M8FsyncRole::MASTER_WITHOUT_OUTPUT)
228+
.value("STANDALONE_NO_M8_FUNCTION", M8FsyncRole::STANDALONE_NO_M8_FUNCTION)
229229
.value("MASTER_WITH_OUTPUT", M8FsyncRole::MASTER_WITH_OUTPUT)
230230
.value("SLAVE", M8FsyncRole::SLAVE);
231231

include/depthai/common/M8FsyncRoles.hpp

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,29 @@ namespace dai {
1111
* It will choose between MASTER_WITH_OUTPUT and SLAVE.
1212
*/
1313
enum class M8FsyncRole : int32_t {
14+
// This role is only used in setM8FsyncRole() function.
15+
// It signals to the device to automatically detect M8 Fsync configuration.
1416
AUTO_DETECT = -1,
15-
MASTER_WITHOUT_OUTPUT,
17+
18+
// Standalone mode.
19+
// STM generates Fsync signal, doesn't output it through M8 connector.
20+
STANDALONE_NO_M8_FUNCTION,
21+
22+
// Fsync master.
23+
// STM generates Fsync signal and outputs it through M8 connector.
1624
MASTER_WITH_OUTPUT,
25+
26+
// Fsync slave.
27+
// Device must lock onto an external Fsync signal on the M8 connector.
1728
SLAVE,
1829
};
1930

2031
inline std::string toString(M8FsyncRole role) {
2132
switch(role) {
2233
case M8FsyncRole::AUTO_DETECT:
2334
return "AUTO DETECT";
24-
case M8FsyncRole::MASTER_WITHOUT_OUTPUT:
25-
return "MASTER, NO OUTPUT";
35+
case M8FsyncRole::STANDALONE_NO_M8_FUNCTION:
36+
return "STANDALONE, NO M8 FUNCTION";
2637
case M8FsyncRole::MASTER_WITH_OUTPUT:
2738
return "MASTER, WITH OUTPUT";
2839
case M8FsyncRole::SLAVE:

src/device/DeviceBase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,7 @@ bool DeviceBase::startPipelineImpl(const Pipeline& pipeline) {
16421642
bool success = false;
16431643
std::string errorMsg;
16441644

1645+
// Initialize the device (M8 Fsync slaves need to lock onto the signal first)
16451646
std::tie(success, errorMsg) = pimpl->rpcClient->call(WAIT_FOR_DEVICE_READY_RPC_NAME).as<std::tuple<bool, std::string>>();
16461647

16471648
if (!success) {

0 commit comments

Comments
 (0)