hdi08List.cpp (606B)
1 #include "hdi08List.h" 2 3 namespace virusLib 4 { 5 void Hdi08List::addHDI08(dsp56k::HDI08& _hdi08) 6 { 7 m_queues.emplace_back(_hdi08); 8 } 9 10 bool Hdi08List::rxEmpty() const 11 { 12 for (const auto& h : m_queues) 13 { 14 if(!h.rxEmpty()) 15 return false; 16 } 17 return true; 18 } 19 20 void Hdi08List::exec() 21 { 22 for (auto& h : m_queues) 23 h.exec(); 24 } 25 26 void Hdi08List::writeRX(const dsp56k::TWord* _buf, size_t _length) 27 { 28 for (auto& h : m_queues) 29 h.writeRX(_buf, _length); 30 } 31 32 void Hdi08List::writeHostFlags(uint8_t _flag0, uint8_t _flag1) 33 { 34 for (auto& h : m_queues) 35 h.writeHostFlags(_flag0, _flag1); 36 } 37 }