PulseView
0.3.0
A Qt-based sigrok GUI
|
#include <hardwaredevice.hpp>
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 > | |
T | read_config (const sigrok::ConfigKey *key, const T default_value=0) |
virtual void | start () |
virtual void | run () |
virtual void | stop () |
template<typename T > | |
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_ |
Definition at line 34 of file hardwaredevice.hpp.
pv::devices::HardwareDevice::HardwareDevice | ( | const std::shared_ptr< sigrok::Context > & | context, |
std::shared_ptr< sigrok::HardwareDevice > | device | ||
) |
pv::devices::HardwareDevice::~HardwareDevice | ( | ) |
|
virtual |
Implements pv::devices::Device.
Definition at line 121 of file hardwaredevice.cpp.
|
virtual |
Builds the display name. It only contains fields as required.
device_manager | a 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.
|
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 |
|
virtual |
Implements pv::devices::Device.
Definition at line 103 of file hardwaredevice.cpp.
|
private |
Definition at line 61 of file hardwaredevice.hpp.
|
private |
Definition at line 62 of file hardwaredevice.hpp.