#include <device.hpp>
|
virtual | ~Device () |
|
shared_ptr< sigrok::Session > | session () const |
|
shared_ptr< sigrok::Device > | device () const |
|
template<typename T > |
T | read_config (const sigrok::ConfigKey *key, const T default_value=0) |
|
virtual string | full_name () const =0 |
|
virtual string | display_name (const DeviceManager &device_manager) const =0 |
|
virtual void | open ()=0 |
|
virtual void | close ()=0 |
|
virtual void | start () |
|
virtual void | run () |
|
virtual void | stop () |
|
template<typename T > |
T | read_config (const ConfigKey *key, const T default_value) |
|
|
shared_ptr< sigrok::Session > | session_ |
|
shared_ptr< sigrok::Device > | device_ |
|
Definition at line 41 of file device.hpp.
pv::devices::Device::Device |
( |
| ) |
|
|
protecteddefault |
pv::devices::Device::~Device |
( |
| ) |
|
|
virtual |
virtual void pv::devices::Device::close |
( |
| ) |
|
|
pure virtual |
shared_ptr< sigrok::Device > pv::devices::Device::device |
( |
| ) |
const |
virtual string pv::devices::Device::display_name |
( |
const DeviceManager & |
device_manager | ) |
const |
|
pure virtual |
Builds the display name. It only contains fields as required.
- Parameters
-
device_manager | a reference to the device manager is needed so that other similarly titled devices can be detected. |
Implemented in pv::devices::HardwareDevice, and pv::devices::File.
virtual string pv::devices::Device::full_name |
( |
| ) |
const |
|
pure virtual |
virtual void pv::devices::Device::open |
( |
| ) |
|
|
pure virtual |
template<typename T >
template uint64_t pv::devices::Device::read_config |
( |
const sigrok::ConfigKey * |
key, |
|
|
const T |
default_value = 0 |
|
) |
| |
template<typename T >
T pv::devices::Device::read_config |
( |
const ConfigKey * |
key, |
|
|
const T |
default_value |
|
) |
| |
void pv::devices::Device::run |
( |
| ) |
|
|
virtual |
shared_ptr< sigrok::Session > pv::devices::Device::session |
( |
| ) |
const |
void pv::devices::Device::start |
( |
| ) |
|
|
virtual |
void pv::devices::Device::stop |
( |
| ) |
|
|
virtual |
shared_ptr<sigrok::Device> pv::devices::Device::device_ |
|
protected |
shared_ptr<sigrok::Session> pv::devices::Device::session_ |
|
protected |
The documentation for this class was generated from the following files: