SystemInformation.cpp
Go to the documentation of this file.
2 
3 namespace dai {
4 
5 std::shared_ptr<RawBuffer> SystemInformation::serialize() const {
6  return raw;
7 }
8 
10  : Buffer(std::make_shared<RawSystemInformation>()),
11  systemInformation(*dynamic_cast<RawSystemInformation*>(raw.get())),
12  ddrMemoryUsage(systemInformation.ddrMemoryUsage),
13  cmxMemoryUsage(systemInformation.cmxMemoryUsage),
14  leonCssMemoryUsage(systemInformation.leonCssMemoryUsage),
15  leonMssMemoryUsage(systemInformation.leonMssMemoryUsage),
16  leonCssCpuUsage(systemInformation.leonCssCpuUsage),
17  leonMssCpuUsage(systemInformation.leonMssCpuUsage),
18  chipTemperature(systemInformation.chipTemperature) {}
19 
20 SystemInformation::SystemInformation(std::shared_ptr<RawSystemInformation> ptr)
21  : Buffer(std::move(ptr)),
22  systemInformation(*dynamic_cast<RawSystemInformation*>(raw.get())),
23  ddrMemoryUsage(systemInformation.ddrMemoryUsage),
24  cmxMemoryUsage(systemInformation.cmxMemoryUsage),
25  leonCssMemoryUsage(systemInformation.leonCssMemoryUsage),
26  leonMssMemoryUsage(systemInformation.leonMssMemoryUsage),
27  leonCssCpuUsage(systemInformation.leonCssCpuUsage),
28  leonMssCpuUsage(systemInformation.leonMssCpuUsage),
29  chipTemperature(systemInformation.chipTemperature) {}
30 
31 } // namespace dai
dai::RawSystemInformation
Definition: RawSystemInformation.hpp:18
DAI_SPAN_NAMESPACE_NAME::get
constexpr auto get(span< E, S > s) -> decltype(s[N])
Definition: span.hpp:491
SystemInformation.hpp
dai::Buffer
Base message - buffer of binary data.
Definition: Buffer.hpp:13
dai::SystemInformation::serialize
std::shared_ptr< RawBuffer > serialize() const override
Definition: SystemInformation.cpp:5
dai::SystemInformation::SystemInformation
SystemInformation()
Definition: SystemInformation.cpp:9
std
Definition: Node.hpp:366
dai::ADatatype::raw
std::shared_ptr< RawBuffer > raw
Definition: ADatatype.hpp:15
dai
Definition: CameraExposureOffset.hpp:6


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