fdhwlib  2.0.25
PbusTemplate Class Reference

#include <pbustemplate.h>

Inheritance diagram for PbusTemplate:
PbusImp

List of all members.

Public Member Functions

Static Private Attributes


Detailed Description

Template for a Pbus interface.

Describe here

  • the access method
  • compile options (if available)
  • performance
  • special implementation details - this text is included in the application programmers manual.
  • Not yet implemented features should be added as todo items.
Todo:
Implement the access method for the new Pbus library.

Definition at line 119 of file pbustemplate.h.


Constructor & Destructor Documentation

PbusTemplate::PbusTemplate ( )
PbusTemplate::~PbusTemplate ( )

Member Function Documentation

int PbusTemplate::free ( int  host = 0) [virtual]

Reimplemented from PbusImp.

int PbusTemplate::get ( std::string  item,
std::string *  value 
) [virtual]

Reimplemented from PbusImp.

const char* PbusTemplate::getLibName ( ) [virtual]

Reimplemented from PbusImp.

const char* PbusTemplate::getMode ( ) [virtual]

Reimplemented from PbusImp.

int PbusTemplate::getModeId ( ) [virtual]

Reimplemented from PbusImp.

int PbusTemplate::init ( char *  inifile,
int  host = 0 
) [virtual]

Initilaization of the Pbus interface.

The function will throw an error if the interface is not avaialble The missing or powered-off FD Electronic will cause a warning but no error.

Reimplemented from PbusImp.

unsigned long PbusTemplate::rawRead ( unsigned long  addr) [virtual]

Read data from the electronics via a special interface.

Re-implement this function for every interface.

Reimplemented from PbusImp.

void PbusTemplate::rawWrite ( unsigned long  addr,
unsigned long  data 
) [virtual]

Write data to the electronics via a special interface.

Re-implement this function for every interface.

Reimplemented from PbusImp.

void PbusTemplate::readBlock ( unsigned long  addr,
unsigned long *  data,
unsigned long  n,
unsigned long  incr = 1 
) [virtual]

Read data a continuous block of data.

The function protects a loop of rawRead calls. Normally the function is overloaded using dedicated block transfer operation.

Reimplemented from PbusImp.

void PbusTemplate::reset ( ) [virtual]

Reset of the Pbus access layer.

Reimplemented from PbusImp.


Member Data Documentation

int PbusTemplate::handle [static, private]

Definition at line 154 of file pbustemplate.h.


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