Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

hcalOSLB Class Reference

Controller for an optical Serial Link Board (oSLB) on a HTR SLB site. More...

#include <hcalOSLB.hh>

Inheritance diagram for hcalOSLB:

hcalHTRMezzanineSite List of all members.

Public Member Functions

virtual void getParameters (const hcal::cfg::Context &siteContext, hcal::cfg::CfgDocument *doc)
virtual void reset () throw (hcal::exception::Exception)
virtual void init () throw (hcal::exception::Exception)
virtual void enable () throw (hcal::exception::Exception)
virtual void disable () throw (hcal::exception::Exception)
virtual void renderSubpage (const std::string &subpageName, const cgicc::Cgicc &fullDisclosure, xgi::Output *into) throw (hcal::exception::Exception)
virtual std::string getAddressTableLocation ()
virtual std::string getCategoryName () const
 hcalOSLB (hcal::VMEDeviceBundle &siteHandle, const std::string &stub, int slot, int site, log4cplus::Logger logger, hcalHTRManager *mgr)
virtual ~hcalOSLB ()
void setMode (int foo) throw (hcal::exception::Exception)
void setMap (int m) throw (hcal::exception::Exception)
void setTestPattern (uint32_t p) throw (hcal::exception::Exception)
int getVersion () throw (hcal::exception::Exception)

Detailed Description

Controller for an optical Serial Link Board (oSLB) on a HTR SLB site.

This class provides for initialization and control of an oSLB on a HTR. The oSLB powers up sending idle characters over all 3 GOLs and must be initialized before use.


Constructor & Destructor Documentation

hcalOSLB::hcalOSLB hcal::VMEDeviceBundle siteHandle,
const std::string &  stub,
int  slot,
int  site,
log4cplus::Logger  logger,
hcalHTRManager mgr
 

virtual hcalOSLB::~hcalOSLB  )  [virtual]
 


Member Function Documentation

virtual void hcalOSLB::disable  )  throw (hcal::exception::Exception) [inline, virtual]
 

Disable the hardware (default = do nothing)

Reimplemented from hcalHTRMezzanineSite.

virtual void hcalOSLB::enable  )  throw (hcal::exception::Exception) [virtual]
 

Enable the hardware -- same as reset for now

Reimplemented from hcalHTRMezzanineSite.

virtual std::string hcalOSLB::getAddressTableLocation  )  [virtual]
 

Fetch the address table to use for this item

Implements hcalHTRMezzanineSite.

virtual std::string hcalOSLB::getCategoryName  )  const [inline, virtual]
 

Implements hcalHTRMezzanineSite.

virtual void hcalOSLB::getParameters const hcal::cfg::Context siteContext,
hcal::cfg::CfgDocument doc
[virtual]
 

Get configuration parameters Parameters are:

  • addressTablePath - absolute path to HAL address table
  • mode - oSLB operating mode (see setMode())
  • map - mapping from HTR muon bits to GOL data (see setMap() )
  • testPattern - 32-bit test pattern to send when test_enable bit is set (proceed hex with "0x")
  • firmwareVersion - Requested firmware revision. If mis-match, log an error but take no other action.

Reimplemented from hcalHTRMezzanineSite.

int hcalOSLB::getVersion  )  throw (hcal::exception::Exception)
 

Get firmware revision

virtual void hcalOSLB::init  )  throw (hcal::exception::Exception) [virtual]
 

Initialize the hardware -- same as reset for now

Implements hcalHTRMezzanineSite.

virtual void hcalOSLB::renderSubpage const std::string &  subpageName,
const cgicc::Cgicc &  fullDisclosure,
xgi::Output *  into
throw (hcal::exception::Exception) [virtual]
 

HTML view support

Implements hcalHTRMezzanineSite.

virtual void hcalOSLB::reset  )  throw (hcal::exception::Exception) [virtual]
 

Reset oSLB hardware and send link idle to resync receivers

Reimplemented from hcalHTRMezzanineSite.

void hcalOSLB::setMap int  m  )  throw (hcal::exception::Exception)
 

Select mapping of muon bits to GOL output bits

Parameters:
m - selected map (0x00-0xff). See docs.

void hcalOSLB::setMode int  foo  )  throw (hcal::exception::Exception)
 

Set oSLB transmitter mode

Parameters:
foo - mode bits to set (see detailed documentation

void hcalOSLB::setTestPattern uint32_t  p  )  throw (hcal::exception::Exception)
 

Set test pattern

Parameters:
p - 32-bit pattern to send on GOL


The documentation for this class was generated from the following file:
Generated on Sun Mar 21 20:53:24 2010 for HCALdaq by  doxygen 1.3.9.1