Public Member Functions | Protected Attributes

base::Peripheral Class Reference

Base class to represent ROC peripherals. More...

#include <Peripheral.h>

Inheritance diagram for base::Peripheral:
Inheritance graph
[legend]
Collaboration diagram for base::Peripheral:
Collaboration graph
[legend]

Public Member Functions

 Peripheral ()
 Peripheral (base::Board *board)
 Contructor with roc::Board pointer.
virtual ~Peripheral ()
base::Boardboard ()
 Return reference to roc::Board which hosts the Peripheral.
base::BoardgetBoard () const
 Returns pointer to the roc::Board which hosts the Peripheral.

Protected Attributes

base::BoardfBoard
 board pointer

Detailed Description

Base class to represent ROC peripherals.

Concrete ROC peripherals, like the I2C bus interface, will be represented by classes derived from Peripheral.

The class holds the address information needed to reach the Peripheral, which at the base class level is just the pointer to the roc::Board which hosts the Peripheral.

Definition at line 24 of file Peripheral.h.


Constructor & Destructor Documentation

base::Peripheral::Peripheral (  )  [inline]

Definition at line 28 of file Peripheral.h.

base::Peripheral::Peripheral ( base::Board board  ) 

Contructor with roc::Board pointer.

base::Peripheral should always constructed via this ctor because the board pointer to a roc::Board instance is always needed.

Parameters:
board pointer to the roc::Board which hosts the Peripheral.

Definition at line 19 of file Peripheral.cxx.

References fBoard.

virtual base::Peripheral::~Peripheral (  )  [inline, virtual]

Definition at line 30 of file Peripheral.h.


Member Function Documentation

base::Board & base::Peripheral::board (  ) 
base::Board* base::Peripheral::getBoard (  )  const [inline]

Returns pointer to the roc::Board which hosts the Peripheral.

Note: normally using board() is more convenient.

Definition at line 38 of file Peripheral.h.

References fBoard.

Referenced by nxyter::FebUtil::acquireTestTriggerData(), nxyter::NxChip::activate(), nxyter::FebBase::addNxChip(), nxyter::NxChip::deactivate(), nxyter::NxChip::isactive(), and nxyter::QuickDaq::QuickDaq().


Field Documentation

board pointer

Definition at line 26 of file Peripheral.h.

Referenced by board(), getBoard(), and Peripheral().


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