|
fdhwlib
2.0.25
|
#include <simpagecontroller.h>
Implements the page controller algorithm for the simulation mode.
Definition at line 24 of file simpagecontroller.h.
| SimPageController::SimPageController | ( | Slt * | s, |
| FILE * | fout = stdout |
||
| ) |
| SimPageController::~SimPageController | ( | ) |
| int SimPageController::findNextFreePage | ( | ) | [protected] |
The next free page is marked free in the page status and is not the actual page.
If no free page is found 32 is returned.
| void SimPageController::freePage | ( | int | page | ) |
Set a page free.
| bool SimPageController::generateTrigger | ( | int | trigger, |
| bool | setTimeStamp = true |
||
| ) |
Generate a trigger signal and switch to the next page, if the system is running and the trigger source is valid.
| void SimPageController::init | ( | ) |
Initialize the page controller registers.
| void SimPageController::run | ( | int | samplingTime = 10, |
| float | triggerRate = 0.15 |
||
| ) |
Simulate page controller.
Look for software trigger coming in and modify the page status register.
| triggerRate | Slt Trigger rate [Hz] |
| samplingTime | T of pooling loop [ms] |
| void SimPageController::setTimeStamp | ( | int | page, |
| int | trigger | ||
| ) |
Set the time stamp of the page to the l�cal time.
| void SimPageController::switchToNextPage | ( | int | trigger, |
| bool | setTimeStamp = true |
||
| ) | [protected] |
Generate a next page signal.
The command will modify the page status, page pointers and fill in the time stamps of the page
| void SimPageController::updateInhibit | ( | ) |
Update the status of the inhibit flag.
FILE* SimPageController::fout [protected] |
Definition at line 73 of file simpagecontroller.h.
Slt* SimPageController::theSlt [protected] |
Reference to the crate.
Definition at line 71 of file simpagecontroller.h.