Class RegmapManager

Class Documentation

class RegmapManager

RegmapManager parses the YAML file that describes the register map, therefore it knows whether a register exists, it is readable, writable and whether it is attached to the secondary PCIe endpoint. RegmapManager does not interact with the FELIX card (real or emulated).

Public Functions

RegmapManager()
inline bool can_read(const std::string &name)
Parameters:

name -- the register name.

Returns:

whether the register is readable.

inline bool can_write(const std::string &name)
Parameters:

name -- the register name.

Returns:

whether the register is writable.

inline bool has_endpoint_1(const std::string &name)
Parameters:

name -- the register name.

Returns:

whether the register is used also by the secondary PCIe endpoint.