Template Class FromHost

Class Documentation

template<class CFG, class DEV, class BUF>
class FromHost

Class at the core of felix-toflx and felix-file2flx.

Template Parameters:
  • CFG -- Configuration class that provides device IDs, DMA buffer sizes, and network settings (e.g. ConfigToFlx)

  • DEV -- Represents a FELIX device (e.g. FlxDevice, FileDevice) that handles hardware communication

  • BUF -- FromHost DMA buffer implementation (e.g. FlxFromHostBuffer, FileFromHostBuffer) for memory management

Public Functions

inline explicit FromHost(std::unique_ptr<CFG> config)
void start()

allocate all resources and start thread(s).

void stop()

stop transfers, join all created threads.

void print_monitoring()

print monitoring information in FIFO.

Public Members

std::unique_ptr<CFG> cfg
std::list<std::shared_ptr<DEV>> devices
std::map<int, std::shared_ptr<BUF>> dma_buffers