Class Bus
Defined in File bus.hpp
Class Documentation
-
class Bus
Inteface class for felix-bus (medium for e-link advertisement)
Public Functions
-
explicit Bus(const std::string &bus_dir, const std::string &bus_group, int dmaid, bool verbose)
Felix-bus constructor. The bus filename is generated automatically using the DMA buffer identifier.
- Parameters:
bus_dir -- bus directory.
bus_group -- bus group name.
dmaid -- DMA buffer number.
verbose -- option for the felix-bus.
-
explicit Bus(const std::string &bus_dir, const std::string &bus_group, const std::string &filename, bool verbose)
Felix-bus constructor with ad-hoc filename.
- Parameters:
bus_dir -- bus directory.
bus_group -- bus group name.
filename -- bus file name, to set a custom file name.
verbose -- option for the felix-bus.
-
bool publish(std::span<const felixbus::FelixBusElinkInfo> data)
Publish on the current bus a list of e-links
- Parameters:
data -- vector of e-links with information to publish.
-
explicit Bus(const std::string &bus_dir, const std::string &bus_group, int dmaid, bool verbose)