My Project  v0.0.16
Classes | Public Types | Public Member Functions | Private Member Functions | List of all members
CtrlNode Class Reference

Specialised node that provides the basic control over the MP7 board. More...

#include <CtrlNode.hpp>

Inheritance diagram for CtrlNode:
Inheritance graph
[legend]
Collaboration diagram for CtrlNode:
Collaboration graph
[legend]

Classes

class  Clock40Guard
 

Public Types

Public Member Functions

Private Member Functions

Detailed Description

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

Author
Alessandro Thea
Date
2013

Member Enumeration Documentation

◆ BufferSelection

enum BufferSelection
Enumerator
Rx 
Tx 

◆ RegionType

enum RegionType
Enumerator
RegEmpty 
RegBuffer 
RegMGT 

Constructor & Destructor Documentation

◆ CtrlNode()

CtrlNode ( const uhal::Node&  node)

◆ ~CtrlNode()

~CtrlNode ( )
virtual

Member Function Documentation

◆ clock40Locked()

bool clock40Locked ( ) const

Return the locking status of the 40Mhz clock.

◆ getBufferRegions()

std::vector<uint32_t> getBufferRegions ( ) const

Returns the list of regions with buffers.

◆ getGenerics()

boost::unordered_map<std::string, uint32_t> getGenerics ( ) const

◆ getMGTRegions()

std::vector<uint32_t> getMGTRegions ( ) const

Returns the list of regions with mgts.

◆ getRegions()

std::vector<uint32_t> getRegions ( ) const

Returns the overall list of regions.

returns the overall list of regions

◆ hardReset()

void hardReset ( double  aMilliSleep = 1000) const

Nuke the board and reset the 40 Mhz clock.

◆ resetClock40()

void resetClock40 ( bool  aReset = true) const

Reset Clock 40.

◆ selectChannel()

void selectChannel ( uint32_t  channel) const

Select the channel to access to.

◆ selectClk40Source()

void selectClk40Source ( bool  aExternalClock = true,
double  aMilliSleep = 1000 
) const

Select the clock.

◆ selectLink()

void selectLink ( uint32_t  link) const

Select link.

◆ selectLinkBuffer()

void selectLinkBuffer ( uint32_t  aLink,
BufferSelection  aBuffer 
) const

Select buffer.

◆ selectRegChan()

void selectRegChan ( uint32_t  quad,
uint32_t  chan 
) const

Select quad and channel.

◆ selectRegion()

void selectRegion ( uint32_t  quad) const

Select quad to access to.

◆ softReset()

void softReset ( ) const

Soft reset.

◆ UHAL_DERIVEDNODE()

UHAL_DERIVEDNODE (   CtrlNode)
private

◆ waitClk40Lock()

void waitClk40Lock ( uint32_t  aMaxTries = 1000) const

wait (up to 100 ms) for the clock lock


The documentation for this class was generated from the following files: