PulseView  0.3.0
A Qt-based sigrok GUI
pv::devices::HardwareDevice Class Referencefinal

#include <hardwaredevice.hpp>

Inheritance diagram for pv::devices::HardwareDevice:
Collaboration diagram for pv::devices::HardwareDevice:

Public Member Functions

 HardwareDevice (const std::shared_ptr< sigrok::Context > &context, std::shared_ptr< sigrok::HardwareDevice > device)
 
 ~HardwareDevice ()
 
std::shared_ptr< sigrok::HardwareDevice > hardware_device () const
 
std::string full_name () const
 
std::string display_name (const DeviceManager &device_manager) const
 
void open ()
 
void close ()
 
- Public Member Functions inherited from pv::devices::Device
virtual ~Device ()
 
std::shared_ptr< sigrok::Session > session () const
 
std::shared_ptr< sigrok::Device > device () const
 
template<typename T >
read_config (const sigrok::ConfigKey *key, const T default_value=0)
 
virtual void start ()
 
virtual void run ()
 
virtual void stop ()
 
template<typename T >
read_config (const ConfigKey *key, const T default_value)
 

Private Attributes

const std::shared_ptr< sigrok::Context > context_
 
bool device_open_
 

Additional Inherited Members

- Protected Member Functions inherited from pv::devices::Device
 Device ()
 
- Protected Attributes inherited from pv::devices::Device
std::shared_ptr< sigrok::Session > session_
 
std::shared_ptr< sigrok::Device > device_
 

Detailed Description

Definition at line 34 of file hardwaredevice.hpp.

Constructor & Destructor Documentation

pv::devices::HardwareDevice::HardwareDevice ( const std::shared_ptr< sigrok::Context > &  context,
std::shared_ptr< sigrok::HardwareDevice >  device 
)

Definition at line 44 of file hardwaredevice.cpp.

Here is the call graph for this function:

pv::devices::HardwareDevice::~HardwareDevice ( )

Definition at line 52 of file hardwaredevice.cpp.

Here is the call graph for this function:

Member Function Documentation

void pv::devices::HardwareDevice::close ( )
virtual

Implements pv::devices::Device.

Definition at line 121 of file hardwaredevice.cpp.

Here is the caller graph for this function:

string pv::devices::HardwareDevice::display_name ( const DeviceManager device_manager) const
virtual

Builds the display name. It only contains fields as required.

Parameters
device_managera reference to the device manager is needed so that other similarly titled devices can be detected.

Implements pv::devices::Device.

Definition at line 71 of file hardwaredevice.cpp.

Here is the call graph for this function:

string pv::devices::HardwareDevice::full_name ( ) const
virtual

Builds the full name. It only contains all the fields.

Implements pv::devices::Device.

Definition at line 57 of file hardwaredevice.cpp.

shared_ptr< sigrok::HardwareDevice > pv::devices::HardwareDevice::hardware_device ( ) const

Definition at line 66 of file hardwaredevice.cpp.

Here is the caller graph for this function:

void pv::devices::HardwareDevice::open ( )
virtual

Implements pv::devices::Device.

Definition at line 103 of file hardwaredevice.cpp.

Here is the call graph for this function:

Member Data Documentation

const std::shared_ptr<sigrok::Context> pv::devices::HardwareDevice::context_
private

Definition at line 61 of file hardwaredevice.hpp.

bool pv::devices::HardwareDevice::device_open_
private

Definition at line 62 of file hardwaredevice.hpp.


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