fdhwlib
2.0.25
|
#include <pbuspci.h>
Template for a Pbus interface.
Describe here
PbusPCI::PbusPCI | ( | ) |
PbusPCI::~PbusPCI | ( | ) |
int PbusPCI::free | ( | int | host = 0 | ) | [virtual] |
Reimplemented from PbusImp.
int PbusPCI::get | ( | std::string | item, |
std::string * | value | ||
) | [virtual] |
Reimplemented from PbusImp.
const char* PbusPCI::getLibName | ( | ) | [virtual] |
Reimplemented from PbusImp.
const char* PbusPCI::getMode | ( | ) | [virtual] |
Reimplemented from PbusImp.
int PbusPCI::getModeId | ( | ) | [virtual] |
Reimplemented from PbusImp.
int PbusPCI::init | ( | char * | inifile, |
int | host = 0 |
||
) | [virtual] |
unsigned long PbusPCI::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 PbusPCI::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 PbusPCI::readBlock | ( | unsigned long | addr, |
unsigned long * | data, | ||
unsigned long | n, | ||
unsigned long | incr = 1 |
||
) | [virtual] |
Note: Bit 31 of the address field is used to selcet the access mode.
Reimplemented from PbusImp.
int PbusPCI::set | ( | std::string | item, |
std::string | value | ||
) | [virtual] |
Reimplemented from PbusImp.
void PbusPCI::writeBlock | ( | unsigned long | addr, |
unsigned long * | data, | ||
unsigned long | n, | ||
unsigned long | incr = 1 |
||
) | [virtual] |
Write a continuous block of data.
The function protects a loop of rawWrite calls.The function can be overloaded using dedicated block transfer operation.
Reimplemented from PbusImp.
unsigned long PbusPCI::BaseAddr [private] |
int PbusPCI::fd [static, private] |
int PbusPCI::handle [static, private] |
unsigned long PbusPCI::Irq [private] |
unsigned long PbusPCI::ModuleID [static, private] |
void* PbusPCI::mp [static, private] |
unsigned long PbusPCI::Size [private] |