| | |
| | | |
| | | |
| | | namespace SERVO { |
| | | CEqModeStep::CEqModeStep() : CStep() |
| | | CEqModeStep::CEqModeStep() : CReadStep() |
| | | { |
| | | m_nModeDev = 0; |
| | | m_nMode = 0; |
| | |
| | | |
| | | } |
| | | |
| | | void CEqModeStep::getAttributeVector(CAttributeVector& attrubutes) |
| | | { |
| | | CReadStep::getAttributeVector(attrubutes); |
| | | |
| | | std::string strTemp; |
| | | attrubutes.addAttribute(new CAttribute("Mode", |
| | | std::to_string(m_nMode).c_str(), getModeDescription(strTemp).c_str())); |
| | | attrubutes.addAttribute(new CAttribute("Mode Dev", |
| | | ("W" + CToolUnits::toHexString(m_nModeDev, strTemp)).c_str(), "")); |
| | | } |
| | | |
| | | int CEqModeStep::onReadData() |
| | | { |
| | | CStep::onReadData(); |
| | | CReadStep::onReadData(); |
| | | |
| | | DWordContainer dc; |
| | | if (0 != m_pCclink->ReadDWordData(m_station, DeviceType::W, m_nModeDev, 1, dc)) { |
| | |
| | | |
| | | int CEqModeStep::onComplete() |
| | | { |
| | | CStep::onComplete(); |
| | | CReadStep::onComplete(); |
| | | LOGI("<CEqModeStep> onComplete."); |
| | | |
| | | return 0; |
| | |
| | | |
| | | int CEqModeStep::onTimeout() |
| | | { |
| | | CStep::onTimeout(); |
| | | CReadStep::onTimeout(); |
| | | LOGI("<CEqModeStep> onTimeout."); |
| | | |
| | | return 0; |