Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
movidius_ncs_lib::Device Class Reference

#include <device.h>

Public Types

using ConstPtr = std::shared_ptr< Device const >
 
enum  LogLevel { Nothing, Errors, Verbose }
 
using Ptr = std::shared_ptr< Device >
 

Public Member Functions

 Device (int index, LogLevel log_level)
 
void * getHandle ()
 
LogLevel getLogLevel ()
 
std::string getName () const
 
void monitorThermal () const
 
void setLogLevel (LogLevel level)
 
 ~Device ()
 

Private Types

enum  ThermalThrottlingLevel { Normal, High, Aggressive }
 

Private Member Functions

void close ()
 
void find ()
 
ThermalThrottlingLevel getThermalThrottlingLevel () const
 
void open ()
 

Private Attributes

void * handle_
 
int index_
 
std::string name_
 

Detailed Description

Definition at line 26 of file device.h.

Member Typedef Documentation

using movidius_ncs_lib::Device::ConstPtr = std::shared_ptr<Device const>

Definition at line 30 of file device.h.

using movidius_ncs_lib::Device::Ptr = std::shared_ptr<Device>

Definition at line 29 of file device.h.

Member Enumeration Documentation

Enumerator
Nothing 
Errors 
Verbose 

Definition at line 32 of file device.h.

Enumerator
Normal 
High 
Aggressive 

Definition at line 49 of file device.h.

Constructor & Destructor Documentation

movidius_ncs_lib::Device::Device ( int  index,
LogLevel  log_level 
)

Definition at line 28 of file device.cpp.

movidius_ncs_lib::Device::~Device ( )

Definition at line 37 of file device.cpp.

Member Function Documentation

void movidius_ncs_lib::Device::close ( )
private

Definition at line 62 of file device.cpp.

void movidius_ncs_lib::Device::find ( )
private

Definition at line 128 of file device.cpp.

void * movidius_ncs_lib::Device::getHandle ( )

Definition at line 122 of file device.cpp.

Device::LogLevel movidius_ncs_lib::Device::getLogLevel ( )

Definition at line 98 of file device.cpp.

std::string movidius_ncs_lib::Device::getName ( ) const

Definition at line 49 of file device.cpp.

Device::ThermalThrottlingLevel movidius_ncs_lib::Device::getThermalThrottlingLevel ( ) const
private

Definition at line 109 of file device.cpp.

void movidius_ncs_lib::Device::monitorThermal ( ) const

Definition at line 74 of file device.cpp.

void movidius_ncs_lib::Device::open ( )
private

Definition at line 55 of file device.cpp.

void movidius_ncs_lib::Device::setLogLevel ( LogLevel  level)

Definition at line 89 of file device.cpp.

Member Data Documentation

void* movidius_ncs_lib::Device::handle_
private

Definition at line 64 of file device.h.

int movidius_ncs_lib::Device::index_
private

Definition at line 62 of file device.h.

std::string movidius_ncs_lib::Device::name_
private

Definition at line 63 of file device.h.


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


movidius_ncs_lib
Author(s): Xiaojun Huang
autogenerated on Mon Jun 10 2019 14:11:23