UVC.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
5 // shared
7 
8 namespace dai {
9 namespace node {
10 
14 class UVC : public NodeCRTP<Node, UVC, UVCProperties> {
15  public:
16  constexpr static const char* NAME = "UVC";
17 
18  public:
19  UVC(const std::shared_ptr<PipelineImpl>& par, int64_t nodeId);
20  UVC(const std::shared_ptr<PipelineImpl>& par, int64_t nodeId, std::unique_ptr<Properties> props);
21 
27  Input input{*this, "in", Input::Type::SReceiver, true, 8, true, {{DatatypeEnum::Buffer, true}}};
28 
30  void setGpiosOnInit(std::unordered_map<int, int> list);
31 
33  void setGpiosOnStreamOn(std::unordered_map<int, int> list);
34 
36  void setGpiosOnStreamOff(std::unordered_map<int, int> list);
37 };
38 
39 } // namespace node
40 } // namespace dai
dai::node::UVC::setGpiosOnStreamOff
void setGpiosOnStreamOff(std::unordered_map< int, int > list)
Set GPIO list <gpio_number, value> for GPIOs to set when streaming is disabled.
Definition: UVC.cpp:20
dai::DatatypeEnum::Buffer
@ Buffer
dai::node::UVC::input
Input input
Definition: UVC.hpp:27
dai::NodeCRTP
Definition: Node.hpp:342
UVCProperties.hpp
dai::node::UVC
UVC (USB Video Class) node.
Definition: UVC.hpp:14
dai::node::UVC::setGpiosOnStreamOn
void setGpiosOnStreamOn(std::unordered_map< int, int > list)
Set GPIO list <gpio_number, value> for GPIOs to set when streaming is enabled.
Definition: UVC.cpp:16
dai::Node::Input
Definition: Node.hpp:147
dai::node::UVC::NAME
constexpr static const char * NAME
Definition: UVC.hpp:16
dai::node::UVC::UVC
UVC(const std::shared_ptr< PipelineImpl > &par, int64_t nodeId)
Definition: UVC.cpp:6
dai::node::UVC::setGpiosOnInit
void setGpiosOnInit(std::unordered_map< int, int > list)
Set GPIO list <gpio_number, value> for GPIOs to set (on/off) at init.
Definition: UVC.cpp:12
dai
Definition: CameraExposureOffset.hpp:6
Node.hpp


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19