|
Misc Relacs Plugins
0.9.8
|
#include <amplmode.h>


Public Member Functions | |
| AmplMode (DigitalIO &dio, const Options &opts) | |
| AmplMode (void) | |
| virtual | ~AmplMode (void) |
| virtual int | open (DigitalIO &dio) |
| virtual int | open (Device &device) override |
| virtual bool | isOpen (void) const |
| virtual void | close (void) |
| string | errorStr (void) const |
| bool | supportsBridgeMode (void) const |
| bool | supportsCurrentClampMode (void) const |
| bool | supportsVoltageClampMode (void) const |
| bool | supportsDynamicClampMode (void) const |
| int | setBridgeMode (void) |
| int | setCurrentClampMode (void) |
| int | setDynamicClampMode (double duration, double mode) |
| int | setVoltageClampMode (void) |
| int | setManualSelection (void) |
| int | startResistance (void) |
| int | stopResistance (void) |
| int | startBuzz (void) |
| int | stopBuzz (void) |
Protected Member Functions | |
| void | initOptions () override |
[Device] Control the mode of an amplifier via DigitalIO
bridgepin: the dio line that switches the amplifier into bridge mode.cclamppin: the dio line that switches the amplifier into current clamp mode.vclamppin: the dio line that switches the amplifier into voltage clamp mode.dclamppin: the dio line that switches the amplifier into synchronized dynamic clamp mode.syncpin: the dio line on which synchronizing pulses for the amplifier are generated.resistancepin: the dio line that activates resistance measurement of the amplifier.buzzerpin: the dio line that activates the buzzer. References AmplMode::open().
| AmplMode | ( | void | ) |
References AmplMode::initOptions().
|
virtual |
References AmplMode::close().
|
virtual |
References DigitalIO::allocateLines(), DigitalIO::isOpen(), AmplMode::isOpen(), and AmplMode::open().
Referenced by AmplMode::AmplMode(), and AmplMode::open().
|
overridevirtual |
References AmplMode::open().
|
virtual |
References DigitalIO::isOpen().
Referenced by AmplMode::close(), AmplMode::open(), AmplMode::setBridgeMode(), AmplMode::setCurrentClampMode(), AmplMode::setDynamicClampMode(), AmplMode::setManualSelection(), AmplMode::setVoltageClampMode(), AmplMode::startBuzz(), AmplMode::startResistance(), AmplMode::stopBuzz(), and AmplMode::stopResistance().
|
virtual |
References DigitalIO::freeLines(), AmplMode::isOpen(), and DigitalIO::writeLines().
Referenced by AmplMode::~AmplMode().
| string errorStr | ( | void | ) | const |
In case of errors returns error string of last operation.
| bool supportsBridgeMode | ( | void | ) | const |
true if the amplifier supports a bridge mode. | bool supportsCurrentClampMode | ( | void | ) | const |
true if the amplifier supports a current-clamp mode. | bool supportsVoltageClampMode | ( | void | ) | const |
true if the amplifier supports a voltage-clamp mode. | bool supportsDynamicClampMode | ( | void | ) | const |
true if the amplifier supports a synchronized dynamic-clamp mode. Referenced by AmplMode::setBridgeMode(), AmplMode::setCurrentClampMode(), AmplMode::setDynamicClampMode(), AmplMode::setManualSelection(), and AmplMode::setVoltageClampMode().
| int setBridgeMode | ( | void | ) |
Activate the bridge mode of the amplifier.
References DigitalIO::clearSyncPulse(), AmplMode::isOpen(), AmplMode::supportsDynamicClampMode(), and DigitalIO::writeLines().
| int setCurrentClampMode | ( | void | ) |
Activate the current-clamp mode of the amplifier.
References DigitalIO::clearSyncPulse(), AmplMode::isOpen(), AmplMode::supportsDynamicClampMode(), and DigitalIO::writeLines().
| int setDynamicClampMode | ( | double | duration, |
| double | mode | ||
| ) |
Activate the current-clamp mode and external synchronization of the amplifier.
References AmplMode::isOpen(), DigitalIO::setSyncPulse(), and AmplMode::supportsDynamicClampMode().
| int setVoltageClampMode | ( | void | ) |
Activate the voltage-clamp mode of the amplifier.
References DigitalIO::clearSyncPulse(), AmplMode::isOpen(), AmplMode::supportsDynamicClampMode(), and DigitalIO::writeLines().
| int setManualSelection | ( | void | ) |
Activate the manual mode of the amplifier.
References DigitalIO::clearSyncPulse(), AmplMode::isOpen(), AmplMode::supportsDynamicClampMode(), and DigitalIO::writeLines().
| int startResistance | ( | void | ) |
Switch the amplifier into resitance measurement mode.
References AmplMode::isOpen(), and DigitalIO::writeLines().
| int stopResistance | ( | void | ) |
Switch the amplifier back into its previous mode.
References AmplMode::isOpen(), and DigitalIO::writeLines().
| int startBuzz | ( | void | ) |
Initiate buzzing by setting the pin for the buzzer high.
References AmplMode::isOpen(), and DigitalIO::write().
| int stopBuzz | ( | void | ) |
Stop buzzing by setting the pin for the buzzer low.
References AmplMode::isOpen(), and DigitalIO::write().
|
overrideprotected |
Referenced by AmplMode::AmplMode().
1.8.6