Class holding information about one Register.
More...
#include <register.h>
|
bool | m_isControl = false |
| Indicates whether the register is a control or an indicator.
|
|
bool | m_isArray = false |
| Indicates whether the register is an array or not.
|
|
Class holding information about one Register.
Definition at line 16 of file register.h.
◆ Register()
irio::bfp::Register::Register |
( |
const std::string & |
_name, |
|
|
const FpgaTypes & |
_fpgaType, |
|
|
const ElemTypes & |
_elemType, |
|
|
const std::uint32_t & |
_address, |
|
|
const size_t & |
_numElem = 1 |
|
) |
| |
Creates a Register object with its relevant information.
- Parameters
-
_name | Name of the register |
_fpgaType | FPGA register type |
_elemType | Type of the element of the register |
_address | Address of the register |
_numElem | Number of elements of the register (Default:1) |
◆ isArray()
bool irio::bfp::Register::isArray |
( |
| ) |
const |
Returns if the register is an array.
- Returns
- true if it is an array
◆ isControl()
bool irio::bfp::Register::isControl |
( |
| ) |
const |
Returns if the register is a control.
- Returns
- true if it is a control
◆ isIndicator()
bool irio::bfp::Register::isIndicator |
( |
| ) |
const |
Returns if the register is an indicator.
- Returns
- true if it is an indicator
◆ processRegister()
static Register irio::bfp::Register::processRegister |
( |
const pugi::xml_node & |
registerNode, |
|
|
const std::uint32_t & |
baseAddress |
|
) |
| |
|
static |
Creates a Register object from an XML node.
- Parameters
-
registerNode | XML node with the info of the Register |
baseAddress | Base address of the device. Needed for calculating the actual address of the Register |
- Returns
- Register constructed with the information in the XML
The documentation for this class was generated from the following file: