Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
b
c
d
e
h
i
l
m
n
p
r
s
u
x
Typedefs
b
c
d
e
f
g
i
m
p
r
u
v
Enumerations
Enumerator
a
b
f
g
i
m
n
r
s
u
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
m
n
p
q
r
s
t
u
v
x
Enumerations
a
c
d
e
f
k
l
m
p
r
s
t
v
w
Enumerator
a
b
d
f
g
h
i
l
m
n
o
p
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Macros
_
d
f
i
m
n
p
s
t
u
src
pipeline
node
SPIIn.cpp
Go to the documentation of this file.
1
#include "
depthai/pipeline/node/SPIIn.hpp
"
2
3
namespace
dai
{
4
namespace
node {
5
6
SPIIn::SPIIn
(
const
std::shared_ptr<PipelineImpl>& par, int64_t nodeId) :
SPIIn
(par, nodeId,
std
::make_unique<
SPIIn
::
Properties
>()) {}
7
SPIIn::SPIIn
(
const
std::shared_ptr<PipelineImpl>& par, int64_t nodeId, std::unique_ptr<Properties> props)
8
:
NodeCRTP
<
Node
,
SPIIn
,
SPIInProperties
>(par, nodeId,
std
::move(props)) {
9
properties
.
busId
= 0;
10
setOutputRefs
({&
out
});
11
}
12
13
void
SPIIn::setStreamName
(
const
std::string& name) {
14
properties
.
streamName
= name;
15
}
16
17
void
SPIIn::setBusId
(
int
busId) {
18
properties
.
busId
= busId;
19
}
20
21
void
SPIIn::setMaxDataSize
(std::uint32_t maxDataSize) {
22
properties
.
maxDataSize
= maxDataSize;
23
}
24
25
void
SPIIn::setNumFrames
(std::uint32_t numFrames) {
26
properties
.
numFrames
= numFrames;
27
}
28
29
std::string
SPIIn::getStreamName
()
const
{
30
return
properties
.
streamName
;
31
}
32
33
int
SPIIn::getBusId
()
const
{
34
return
properties
.
busId
;
35
}
36
37
std::uint32_t
SPIIn::getMaxDataSize
()
const
{
38
return
properties
.
maxDataSize
;
39
}
40
41
std::uint32_t
SPIIn::getNumFrames
()
const
{
42
return
properties
.
numFrames
;
43
}
44
45
}
// namespace node
46
}
// namespace dai
dai::NodeCRTP< Node, SPIIn, SPIInProperties >::properties
Properties & properties
Underlying properties.
Definition:
Node.hpp:346
dai::SPIInProperties::maxDataSize
std::uint32_t maxDataSize
Definition:
SPIInProperties.hpp:25
dai::node::SPIIn::setMaxDataSize
void setMaxDataSize(std::uint32_t maxDataSize)
Definition:
SPIIn.cpp:21
SPIIn.hpp
dai::node::SPIIn::getStreamName
std::string getStreamName() const
Get stream name.
Definition:
SPIIn.cpp:29
dai::Node
Abstract Node.
Definition:
Node.hpp:29
dai::node::SPIIn::getMaxDataSize
std::uint32_t getMaxDataSize() const
Get maximum messages size in bytes.
Definition:
SPIIn.cpp:37
dai::NodeCRTP
Definition:
Node.hpp:342
dai::SPIInProperties::numFrames
std::uint32_t numFrames
Definition:
SPIInProperties.hpp:30
dai::SPIInProperties::streamName
std::string streamName
Definition:
SPIInProperties.hpp:15
dai::node::SPIIn::setNumFrames
void setNumFrames(std::uint32_t numFrames)
Definition:
SPIIn.cpp:25
dai::node::SPIIn::getBusId
int getBusId() const
Get bus id.
Definition:
SPIIn.cpp:33
dai::node::SPIIn::SPIIn
SPIIn(const std::shared_ptr< PipelineImpl > &par, int64_t nodeId)
Definition:
SPIIn.cpp:6
dai::node::SPIIn
SPIIn node. Receives messages over SPI.
Definition:
SPIIn.hpp:14
dai::SPIInProperties
Definition:
SPIInProperties.hpp:11
dai::Properties
Base Properties structure.
Definition:
Properties.hpp:8
dai::Node::setOutputRefs
void setOutputRefs(std::initializer_list< Output * > l)
std
Definition:
Node.hpp:366
dai::node::SPIIn::setBusId
void setBusId(int id)
Definition:
SPIIn.cpp:17
dai::node::SPIIn::out
Output out
Definition:
SPIIn.hpp:24
dai::node::SPIIn::getNumFrames
std::uint32_t getNumFrames() const
Get number of frames in pool.
Definition:
SPIIn.cpp:41
dai::SPIInProperties::busId
int busId
Definition:
SPIInProperties.hpp:20
dai
Definition:
CameraExposureOffset.hpp:6
dai::node::SPIIn::setStreamName
void setStreamName(const std::string &name)
Definition:
SPIIn.cpp:13
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19