Access to the register database and its shadow registers is provided through an object of the following type.
More...
#include <carma/antenna/sza/antenna/control/Share.h>
Access to the register database and its shadow registers is provided through an object of the following type.
Definition at line 83 of file Share.h.
sza::antenna::control::SzaShare::SzaRegDb::SzaRegDb |
( |
| ) |
|
sza::antenna::control::SzaShare::SzaRegDb::~SzaRegDb |
( |
| ) |
|
sza::antenna::control::SzaShare::SzaRegDb::SzaRegDb |
( |
| ) |
|
sza::antenna::control::SzaShare::SzaRegDb::~SzaRegDb |
( |
| ) |
|
RegMapBoard* sza::antenna::control::SzaShare::SzaRegDb::findRegMapBoard |
( |
std::string |
boardName | ) |
|
Look up a board in the register map.
RegMapBoard* sza::antenna::control::SzaShare::SzaRegDb::findRegMapBoard |
( |
std::string |
boardName | ) |
|
Look up a board in the register map.
void sza::antenna::control::SzaShare::SzaRegDb::flagBoard |
( |
int |
board | ) |
|
Flag a given register board as unreachable.
This sets the status register of the specified board to 1. Note that readReg() and writeReg() don't check the status of this register before accessing other registers, so if you want to avoid I/O errors, call verifyBoard() before calling readReg() or writeReg().
- Parameters
-
board | int The index of the board to flag. |
- Exceptions
-
void sza::antenna::control::SzaShare::SzaRegDb::grabRegs |
( |
TimeOut |
timeout | ) |
|
Acquire exclusive access to the database.
- Exceptions
-
void sza::antenna::control::SzaShare::SzaRegDb::grabRegs |
( |
TimeOut |
timeout | ) |
|
Acquire exclusive access to the database.
- Exceptions
-
void sza::antenna::control::SzaShare::SzaRegDb::readShadowReg |
( |
RegMapBlock * |
blk, |
|
|
unsigned |
first, |
|
|
unsigned |
nreg, |
|
|
DataPtr & |
value |
|
) |
| |
A private function of readReg() and readRawReg() to read one or more elements of a shadow register.
Arguments are assumed to have been validated by the caller.
- Parameters
-
blk | RegMapBlock * The register block to read from. |
first | unsigned The block index of the first element to be read. |
nreg | unsigned The number of register elements to be read. |
value | unsigned * The output array. |
void sza::antenna::control::SzaShare::SzaRegDb::SzaShare::SzaRegDb::flagBoard |
( |
int |
board | ) |
|
Flag a given register board as unreachable.
This sets the status register of the specified board to 1. Note that readReg() and writeReg() don't check the status of this register before accessing other registers, so if you want to avoid I/O errors, call verifyBoard() before calling readReg() or writeReg().
- Parameters
-
board | int The index of the board to flag. |
- Exceptions
-
void sza::antenna::control::SzaShare::SzaRegDb::SzaShare::SzaRegDb::unflagBoard |
( |
int |
board | ) |
|
Mark a given register board as reachable.
This sets the status register of the specified board to 0.
- Parameters
-
board | int The index of the board to unflag. |
- Exceptions
-
bool sza::antenna::control::SzaShare::SzaRegDb::SzaShare::SzaRegDb::verifyBoard |
( |
int |
board | ) |
|
Return the value of the status register of a given register board.
This will be zero if the board is reachable, or non-zero otherwise.
returns bool true - The board is marked as ok. false - The board is marked as unreachable, or an error occured in the function.
- Parameters
-
board | int The index of the board to verify. |
- Exceptions
-
void sza::antenna::control::SzaShare::SzaRegDb::unflagBoard |
( |
int |
board | ) |
|
Mark a given register board as reachable.
This sets the status register of the specified board to 0.
- Parameters
-
board | int The index of the board to unflag. |
- Exceptions
-
void sza::antenna::control::SzaShare::SzaRegDb::ungrabRegs |
( |
| ) |
|
Release the database.
- Exceptions
-
void sza::antenna::control::SzaShare::SzaRegDb::ungrabRegs |
( |
| ) |
|
Release the database.
- Exceptions
-
bool sza::antenna::control::SzaShare::SzaRegDb::verifyBoard |
( |
int |
board | ) |
|
Return the value of the status register of a given register board.
This will be zero if the board is reachable, or non-zero otherwise.
returns bool true - The board is marked as ok. false - The board is marked as unreachable, or an error occured in the function.
- Parameters
-
board | int The index of the board to verify. |
- Exceptions
-
void sza::antenna::control::SzaShare::SzaRegDb::writeShadowReg |
( |
RegMapBlock * |
blk, |
|
|
unsigned |
first, |
|
|
unsigned |
nreg, |
|
|
Dataptr & |
value |
|
) |
| |
A private function of writeReg() and writeRawReg() to write one or more elements of a shadow register.
Arguments are assumed to have been validated by the caller.
- Parameters
-
blk | RegMapBlock * The register block to write from. |
first | unsigned The block index of the first element to be written. |
nreg | unsigned The number of register elements to be written. |
value | unsigned * The array of values to be written. |
The documentation for this class was generated from the following files:
- carma/antenna/sza/antenna/control/Share.h
- carma/antenna/sza/antenna/control/SzaShare.h