An input/output capable device. More...
#include <ioDevice.hpp>
Public Member Functions | |
int | setupConfig (mx::app::appConfigurator &config) |
Setup an application configurator for the device section. More... | |
int | loadConfig (mx::app::appConfigurator &config) |
Load the device section from an application configurator. More... | |
int | appStartup () |
Perform application startup steps specific to an ioDevice. More... | |
int | appLogic () |
Perform application logic steps specific to an ioDevice during the main event loop. More... | |
Public Attributes | |
unsigned | m_readTimeout {1000} |
The read timeout [msec]. More... | |
unsigned | m_writeTimeout {1000} |
The write timeout [msec]. More... | |
An input/output capable device.
Standardizes read and write timeout configuration.
Definition at line 26 of file ioDevice.hpp.
int MagAOX::app::dev::ioDevice::appLogic | ( | ) |
Perform application logic steps specific to an ioDevice during the main event loop.
This is currently an empty function which always returns 0. Could be ignored, but for future changes it is recommended to include a call to this in derivedT::appLogic().
Definition at line 41 of file ioDevice.cpp.
int MagAOX::app::dev::ioDevice::appStartup | ( | ) |
Perform application startup steps specific to an ioDevice.
This is currently an empty function which always returns 0. Could be ignored, but for future changes it is recommended to include a call to this in derivedT::appStartup().
Definition at line 36 of file ioDevice.cpp.
Referenced by MagAOX::app::tcsInterface::appStartup().
int MagAOX::app::dev::ioDevice::loadConfig | ( | mx::app::appConfigurator & | config | ) |
Load the device section from an application configurator.
[in] | config | an application configuration from which to load values |
Definition at line 28 of file ioDevice.cpp.
Referenced by MagAOX::app::picoMotorCtrl::loadConfig(), MagAOX::app::smc100ccCtrl::loadConfig(), MagAOX::app::trippLitePDU::loadConfig(), MagAOX::app::dev::edtCamera< derivedT >::loadConfig(), MagAOX::app::flipperCtrl::loadConfigImpl(), MagAOX::app::pi335Ctrl::loadConfigImpl(), MagAOX::app::rhusbMon::loadConfigImpl(), and MagAOX::app::tcsInterface::loadConfigImpl().
int MagAOX::app::dev::ioDevice::setupConfig | ( | mx::app::appConfigurator & | config | ) |
Setup an application configurator for the device section.
[in] | config | an application configuration to setup |
Definition at line 20 of file ioDevice.cpp.
Referenced by MagAOX::app::flipperCtrl::setupConfig(), MagAOX::app::pi335Ctrl::setupConfig(), MagAOX::app::picoMotorCtrl::setupConfig(), MagAOX::app::rhusbMon::setupConfig(), MagAOX::app::smc100ccCtrl::setupConfig(), MagAOX::app::tcsInterface::setupConfig(), MagAOX::app::trippLitePDU::setupConfig(), and MagAOX::app::dev::edtCamera< derivedT >::setupConfig().
unsigned MagAOX::app::dev::ioDevice::m_readTimeout {1000} |
The read timeout [msec].
Definition at line 28 of file ioDevice.hpp.
Referenced by MagAOX::app::rhusbMon::rhusbMon(), MagAOX::app::tcsInterface::acquireFromGuider(), MagAOX::app::picoMotorCtrl::appLogic(), MagAOX::app::trippLitePDU::devPostLogin(), MagAOX::app::trippLitePDU::devStatus(), MagAOX::app::pi335Ctrl::finishInit(), MagAOX::app::pi335Ctrl::getCom(), MagAOX::app::smc100ccCtrl::getCtrlState(), MagAOX::app::smc100ccCtrl::getLastError(), MagAOX::app::tcsInterface::getMagTelStatus(), MagAOX::app::flipperCtrl::getPos(), MagAOX::app::smc100ccCtrl::getPosition(), MagAOX::app::pi335Ctrl::initDM(), loadConfig(), MagAOX::app::rhusbMon::readProbe(), MagAOX::app::tcsInterface::sendFoffload(), MagAOX::app::tcsInterface::sendPyrNudge(), MagAOX::app::tcsInterface::sendTToffload(), MagAOX::app::pi335Ctrl::testConnection(), MagAOX::app::smc100ccCtrl::testConnection(), MagAOX::app::trippLitePDU::turnOutletOff(), and MagAOX::app::trippLitePDU::turnOutletOn().
unsigned MagAOX::app::dev::ioDevice::m_writeTimeout {1000} |
The write timeout [msec].
Definition at line 29 of file ioDevice.hpp.
Referenced by MagAOX::app::rhusbMon::rhusbMon(), MagAOX::app::picoMotorCtrl::appLogic(), MagAOX::app::smc100ccCtrl::appLogic(), MagAOX::app::picoMotorCtrl::channelThreadExec(), MagAOX::app::trippLitePDU::devPostLogin(), MagAOX::app::trippLitePDU::devStatus(), MagAOX::app::pi335Ctrl::finishInit(), MagAOX::app::pi335Ctrl::getCom(), MagAOX::app::smc100ccCtrl::getCtrlState(), MagAOX::app::smc100ccCtrl::getLastError(), MagAOX::app::flipperCtrl::getPos(), MagAOX::app::smc100ccCtrl::getPosition(), MagAOX::app::pi335Ctrl::home_1(), MagAOX::app::pi335Ctrl::home_2(), MagAOX::app::pi335Ctrl::home_3(), MagAOX::app::pi335Ctrl::initDM(), loadConfig(), MagAOX::app::pi335Ctrl::move_1(), MagAOX::app::pi335Ctrl::move_2(), MagAOX::app::pi335Ctrl::move_3(), MagAOX::app::smc100ccCtrl::moveTo(), MagAOX::app::flipperCtrl::moveTo(), MagAOX::app::rhusbMon::readProbe(), MagAOX::app::pi335Ctrl::releaseDM(), MagAOX::app::smc100ccCtrl::startHoming(), MagAOX::app::smc100ccCtrl::stop(), MagAOX::app::pi335Ctrl::testConnection(), MagAOX::app::smc100ccCtrl::testConnection(), MagAOX::app::trippLitePDU::turnOutletOff(), and MagAOX::app::trippLitePDU::turnOutletOn().