Comedi Relacs Plugins
0.9.8
|
#include <comedirouting.h>
Public Member Functions | |
ComediRouting (void) | |
ComediRouting (const string &deviceclass) | |
ComediRouting (const string &device, const Options &opts) | |
virtual | ~ComediRouting (void) |
virtual int | open (const string &device) override |
virtual bool | isOpen (void) const |
virtual void | close (void) |
Protected Member Functions | |
int | open (const string &device, int subdev, int channel, int routing, const string &signal="") |
virtual void | initOptions (void) override |
Protected Attributes | |
comedi_t * | DeviceP |
[Device] Route a signal to a channel of a subdevice.
For routing signals to NI M-Series PFI lines, use the ComediNIPFI plugin (this plugin knows that the PFI channels are at subdevice 7 and provides meaningful names for the signals to be routed).
subdevice
channel
routing
ComediRouting | ( | void | ) |
Create a new ComediRouting without opening a device.
ComediRouting | ( | const string & | deviceclass | ) |
Create a new ComediRouting without opening a device.
References ComediRouting::DeviceP, and ComediRouting::initOptions().
ComediRouting | ( | const string & | device, |
const Options & | opts | ||
) |
Open comedi specified by its device file device.
References ComediRouting::open().
|
virtual |
Close the comedi driver.
References ComediRouting::close().
|
overridevirtual |
Open the device specified by device and set the routing as specified by opts.
Reimplemented in ComediNIPFI.
Referenced by ComediRouting::ComediRouting(), and ComediNIPFI::open().
|
virtual |
true
if the device is open. References ComediRouting::DeviceP.
Referenced by ComediRouting::close(), and ComediRouting::open().
|
virtual |
Close the device.
References ComediRouting::DeviceP, and ComediRouting::isOpen().
Referenced by ComediRouting::~ComediRouting().
|
protected |
Set routing of signal routing to channel channel on subdevice subdev and configure channel as output. signal is the optional name of the routing signal that is displayed in the devices informations.
References ComediRouting::DeviceP, and ComediRouting::isOpen().
|
overrideprotectedvirtual |
Reimplemented in ComediNIPFI.
Referenced by ComediRouting::ComediRouting().
|
protected |
Pointer to the comedi device.
Referenced by ComediRouting::close(), ComediRouting::ComediRouting(), ComediRouting::isOpen(), and ComediRouting::open().