|
My Project
v0.0.16
|
Specialised node that provides the basic control over the MP7 board. More...
#include <CtrlNode.hpp>


Classes | |
| class | Clock40Guard |
Public Types |
Public Member Functions |
Private Member Functions |
Specialised node that provides the basic control over the MP7 board.
Some notes about the registers Tx/Rx buffer selection: rx = 0, tx = 1 (as in BufferSelect enum) Region Info register: 0 = empty 1 = buffer only 2 = gth_10g
| CtrlNode | ( | const uhal::Node& | node | ) |
|
virtual |
| bool clock40Locked | ( | ) | const |
Return the locking status of the 40Mhz clock.
| std::vector<uint32_t> getBufferRegions | ( | ) | const |
Returns the list of regions with buffers.
| boost::unordered_map<std::string, uint32_t> getGenerics | ( | ) | const |
| std::vector<uint32_t> getMGTRegions | ( | ) | const |
Returns the list of regions with mgts.
| std::vector<uint32_t> getRegions | ( | ) | const |
Returns the overall list of regions.
returns the overall list of regions
| void hardReset | ( | double | aMilliSleep = 1000 | ) | const |
Nuke the board and reset the 40 Mhz clock.
| void resetClock40 | ( | bool | aReset = true | ) | const |
Reset Clock 40.
| void selectChannel | ( | uint32_t | channel | ) | const |
Select the channel to access to.
| void selectClk40Source | ( | bool | aExternalClock = true, |
| double | aMilliSleep = 1000 |
||
| ) | const |
Select the clock.
| void selectLink | ( | uint32_t | link | ) | const |
Select link.
| void selectLinkBuffer | ( | uint32_t | aLink, |
| BufferSelection | aBuffer | ||
| ) | const |
Select buffer.
| void selectRegChan | ( | uint32_t | quad, |
| uint32_t | chan | ||
| ) | const |
Select quad and channel.
| void selectRegion | ( | uint32_t | quad | ) | const |
Select quad to access to.
| void softReset | ( | ) | const |
Soft reset.
|
private |
| void waitClk40Lock | ( | uint32_t | aMaxTries = 1000 | ) | const |
wait (up to 100 ms) for the clock lock
1.8.13