irioCoreCpp Library Module
2.1.0
|
Class holding information about one resource (Register or DMA) More...
#include <resource.h>
Public Member Functions | |
Resource (const std::string &_name, const FpgaTypes &_fpgaType, const ElemTypes &_elemType, const std::uint32_t &_address, const size_t &_numElem=1) | |
Stores information about the resource. More... | |
std::uint32_t | getAddress () const |
Gets the address of the resource. More... | |
ElemTypes | getElemType () const |
Gets the element type of the resource. More... | |
FpgaTypes | getFpgaType () const |
Gets the FPGA type of the resource. More... | |
const std::string & | getName () const |
Gets the name of the resource. More... | |
size_t | getNumElem () const |
Gets the number of elements of the resource. More... | |
Private Attributes | |
std::string | name = "" |
Name of the resource. | |
FpgaTypes | fpgaType = FpgaTypes::FpgaType_Control |
FPGA type of the resource. | |
ElemTypes | elemType = ElemTypes::Bool |
Element type of the resource. | |
std::uint32_t | address = 0 |
Address of the resource (including the base address) | |
size_t | numElem = 0 |
Number of elements of the resource. | |
Class holding information about one resource (Register or DMA)
Definition at line 16 of file resource.h.
irio::bfp::Resource::Resource | ( | const std::string & | _name, |
const FpgaTypes & | _fpgaType, | ||
const ElemTypes & | _elemType, | ||
const std::uint32_t & | _address, | ||
const size_t & | _numElem = 1 |
||
) |
Stores information about the resource.
std::uint32_t irio::bfp::Resource::getAddress | ( | ) | const |
Gets the address of the resource.
ElemTypes irio::bfp::Resource::getElemType | ( | ) | const |
Gets the element type of the resource.
FpgaTypes irio::bfp::Resource::getFpgaType | ( | ) | const |
Gets the FPGA type of the resource.
const std::string& irio::bfp::Resource::getName | ( | ) | const |
Gets the name of the resource.
size_t irio::bfp::Resource::getNumElem | ( | ) | const |
Gets the number of elements of the resource.