Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
dai::Resources Class Reference

#include <Resources.hpp>

Public Member Functions

std::vector< std::uint8_t > getBootloaderFirmware (DeviceBootloader::Type type=DeviceBootloader::Type::USB) const
 
std::vector< std::uint8_t > getDeviceFirmware (bool usb2Mode, OpenVINO::Version version=OpenVINO::VERSION_UNIVERSAL) const
 
std::vector< std::uint8_t > getDeviceFirmware (Device::Config config, dai::Path pathToMvcmd={}) const
 
void operator= (Resources const &)=delete
 
 Resources (Resources const &)=delete
 

Static Public Member Functions

static ResourcesgetInstance ()
 

Private Member Functions

 Resources ()
 
 ~Resources ()
 

Private Attributes

std::condition_variable cvBootloader
 
std::condition_variable cvDevice
 
std::thread lazyThreadBootloader
 
std::thread lazyThreadDevice
 
std::mutex mtxBootloader
 
std::mutex mtxDevice
 
bool readyBootloader
 
bool readyDevice
 
std::unordered_map< std::string, std::vector< std::uint8_t > > resourceMapBootloader
 
std::unordered_map< std::string, std::vector< std::uint8_t > > resourceMapDevice
 

Detailed Description

Definition at line 18 of file Resources.hpp.

Constructor & Destructor Documentation

◆ Resources() [1/2]

dai::Resources::Resources ( )
private

Definition at line 346 of file Resources.cpp.

◆ ~Resources()

dai::Resources::~Resources ( )
private

Definition at line 364 of file Resources.cpp.

◆ Resources() [2/2]

dai::Resources::Resources ( Resources const &  )
delete

Member Function Documentation

◆ getBootloaderFirmware()

std::vector< std::uint8_t > dai::Resources::getBootloaderFirmware ( DeviceBootloader::Type  type = DeviceBootloader::Type::USB) const

Definition at line 201 of file Resources.cpp.

◆ getDeviceFirmware() [1/2]

std::vector< std::uint8_t > dai::Resources::getDeviceFirmware ( bool  usb2Mode,
OpenVINO::Version  version = OpenVINO::VERSION_UNIVERSAL 
) const

Definition at line 371 of file Resources.cpp.

◆ getDeviceFirmware() [2/2]

std::vector< std::uint8_t > dai::Resources::getDeviceFirmware ( Device::Config  config,
dai::Path  pathToMvcmd = {} 
) const

Definition at line 68 of file Resources.cpp.

◆ getInstance()

Resources & dai::Resources::getInstance ( )
static

Definition at line 248 of file Resources.cpp.

◆ operator=()

void dai::Resources::operator= ( Resources const &  )
delete

Member Data Documentation

◆ cvBootloader

std::condition_variable dai::Resources::cvBootloader
mutableprivate

Definition at line 30 of file Resources.hpp.

◆ cvDevice

std::condition_variable dai::Resources::cvDevice
mutableprivate

Definition at line 24 of file Resources.hpp.

◆ lazyThreadBootloader

std::thread dai::Resources::lazyThreadBootloader
private

Definition at line 31 of file Resources.hpp.

◆ lazyThreadDevice

std::thread dai::Resources::lazyThreadDevice
private

Definition at line 25 of file Resources.hpp.

◆ mtxBootloader

std::mutex dai::Resources::mtxBootloader
mutableprivate

Definition at line 29 of file Resources.hpp.

◆ mtxDevice

std::mutex dai::Resources::mtxDevice
mutableprivate

Definition at line 23 of file Resources.hpp.

◆ readyBootloader

bool dai::Resources::readyBootloader
private

Definition at line 32 of file Resources.hpp.

◆ readyDevice

bool dai::Resources::readyDevice
private

Definition at line 26 of file Resources.hpp.

◆ resourceMapBootloader

std::unordered_map<std::string, std::vector<std::uint8_t> > dai::Resources::resourceMapBootloader
private

Definition at line 33 of file Resources.hpp.

◆ resourceMapDevice

std::unordered_map<std::string, std::vector<std::uint8_t> > dai::Resources::resourceMapDevice
private

Definition at line 27 of file Resources.hpp.


The documentation for this class was generated from the following files:


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