|
| PcieBackend (std::string deviceNodeName, const std::string &mapFileName="") |
| constructor called through createInstance to create device object More...
|
|
| ~PcieBackend () override |
|
void | open () override |
| Open the device. More...
|
|
void | closeImpl () override |
| All backends derrived from NumericAddressedBackend must implement closeImpl() instead of close. More...
|
|
void | read (uint8_t bar, uint32_t address, int32_t *data, size_t sizeInBytes) override |
|
void | write (uint8_t bar, uint32_t address, int32_t const *data, size_t sizeInBytes) override |
|
std::string | readDeviceInfo () override |
| Return a device information string containing hardware details like the firmware version number or the slot number used by the board. More...
|
|
| NumericAddressedBackend (const std::string &mapFileName="", std::unique_ptr< NumericAddressedRegisterCatalogue > registerMapPointer=std::make_unique< NumericAddressedRegisterCatalogue >()) |
|
| ~NumericAddressedBackend () override=default |
|
virtual void | read (uint64_t bar, uint64_t address, int32_t *data, size_t sizeInBytes) |
| Read function to be implemented by backends. More...
|
|
virtual void | write (uint64_t bar, uint64_t address, int32_t const *data, size_t sizeInBytes) |
| Write function to be implemented by backends. More...
|
|
virtual void | read ([[maybe_unused]] uint8_t bar, [[maybe_unused]] uint32_t address, [[maybe_unused]] int32_t *data, [[maybe_unused]] size_t sizeInBytes) |
| Deprecated read function using 32bit address for backwards compatibility. More...
|
|
virtual void | write ([[maybe_unused]] uint8_t bar, [[maybe_unused]] uint32_t address, [[maybe_unused]] int32_t const *data, [[maybe_unused]] size_t sizeInBytes) |
| Deprecated write function using 32bit address for backwards compatibility. More...
|
|
virtual bool | barIndexValid (uint64_t bar) |
| Function to be implemented by the backends. More...
|
|
virtual bool | canMergeRequests () const |
| Determines whether the backend supports merging of requests (read or write) More...
|
|
RegisterCatalogue | getRegisterCatalogue () const override |
| Return the register catalogue with detailed information on all registers. More...
|
|
MetadataCatalogue | getMetadataCatalogue () const override |
| Return the device metadata catalogue. More...
|
|
NumericAddressedRegisterInfo | getRegisterInfo (const RegisterPath ®isterPathName) |
| getRegisterInfo returns a NumericAddressedRegisterInfo object for the given register. More...
|
|
void | activateAsyncRead () noexcept override |
| Activate asyncronous read for all transfer elements where AccessMode::wait_for_new_data is set. More...
|
|
void | close () final |
| Deactivates all asynchronous accessors and calls closeImpl(). More...
|
|
virtual std::future< void > | activateSubscription (uint32_t interruptNumber, boost::shared_ptr< async::DomainImpl< std::nullptr_t >> asyncDomain) |
| Activate/create the subscription for a given interrupt (for instance by starting the according interrupt handling thread). More...
|
|
void | setExceptionImpl () noexcept override |
| Turn off the internal variable which remembers that async is active. More...
|
|
template<typename BackendSpecificUserType > |
std::pair< BackendSpecificUserType, VersionNumber > | getAsyncDomainInitialValue (size_t asyncDomainId) |
| Get the initial value for a certain async::Domain. More...
|
|
template<typename BackendSpecificUserType > |
std::pair< BackendSpecificUserType, VersionNumber > | getAsyncDomainInitialValue ([[maybe_unused]] size_t asyncDomainId) |
|
bool | isOpen () override |
| Return whether a device has been opened or not. More...
|
|
bool | isConnected () final |
| Deprecated since 2022-03-03. More...
|
|
void | checkActiveException () final |
| Function to be called by backends when needing to check for an active exception. More...
|
|
void | setException (const std::string &message) noexcept final |
| Set the backend into an exception state. More...
|
|
bool | isFunctional () const noexcept final |
| Return whether a device is working as intended, usually this means it is opened and does not have any errors. More...
|
|
std::string | getActiveExceptionMessage () noexcept |
|
virtual | ~DeviceBackend ()=default |
| Every virtual class needs a virtual desctructor. More...
|
|
template<typename UserType > |
boost::shared_ptr< NDRegisterAccessor< UserType > > | getRegisterAccessor (const RegisterPath ®isterPathName, size_t numberOfWords, size_t wordOffsetInRegister, AccessModeFlags flags) |
| Get a NDRegisterAccessor object from the register name. More...
|
|
| DEFINE_VIRTUAL_FUNCTION_TEMPLATE_VTABLE (getRegisterAccessor_impl, boost::shared_ptr< NDRegisterAccessor< T >>(const RegisterPath &, size_t, size_t, AccessModeFlags)) |
|
A class to provide the Pcie device functionality.
"
Definition at line 17 of file PcieBackend.h.