fdhwlib
2.0.25
|
#include <pbuspcidma.h>
Template for a Pbus interface.
Describe here
Definition at line 41 of file pbuspcidma.h.
PbusPCIDMA::PbusPCIDMA | ( | ) |
PbusPCIDMA::~PbusPCIDMA | ( | ) |
int PbusPCIDMA::free | ( | int | host = 0 | ) | [virtual] |
Reimplemented from PbusImp.
int PbusPCIDMA::get | ( | std::string | item, |
std::string * | value | ||
) | [virtual] |
Reimplemented from PbusImp.
const char* PbusPCIDMA::getLibName | ( | ) | [virtual] |
Reimplemented from PbusImp.
const char* PbusPCIDMA::getMode | ( | ) | [virtual] |
Reimplemented from PbusImp.
int PbusPCIDMA::getModeId | ( | ) | [virtual] |
Reimplemented from PbusImp.
int PbusPCIDMA::init | ( | char * | inifile, |
int | host = 0 |
||
) | [virtual] |
unsigned long PbusPCIDMA::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 PbusPCIDMA::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 PbusPCIDMA::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 PbusPCIDMA::set | ( | std::string | item, |
std::string | value | ||
) | [virtual] |
Reimplemented from PbusImp.
void PbusPCIDMA::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 PbusPCIDMA::BaseAddr [private] |
Definition at line 85 of file pbuspcidma.h.
int PbusPCIDMA::fd [static, private] |
Definition at line 83 of file pbuspcidma.h.
int PbusPCIDMA::handle [static, private] |
Definition at line 82 of file pbuspcidma.h.
unsigned long PbusPCIDMA::Irq [private] |
Definition at line 85 of file pbuspcidma.h.
unsigned long PbusPCIDMA::ModuleID [static, private] |
Definition at line 85 of file pbuspcidma.h.
void* PbusPCIDMA::mp [static, private] |
Definition at line 84 of file pbuspcidma.h.
unsigned long PbusPCIDMA::Size [private] |
Definition at line 85 of file pbuspcidma.h.