fdhwlib  2.0.25
PbusMicroEnable Class Reference

#include <pbusmicroenable.h>

List of all members.

Public Member Functions

Static Private Member Functions

Static Private Attributes


Detailed Description

Pbus interface for Microenable interface.

The interface is based on the PbusImp definition.

Note: In test mode the interface is base on the PbusSim-implementation Instead of using the shared memory the memory on the microenable card is used.

Definition at line 38 of file pbusmicroenable.h.


Constructor & Destructor Documentation

PbusMicroEnable::PbusMicroEnable ( )
PbusMicroEnable::~PbusMicroEnable ( )

Member Function Documentation

int PbusMicroEnable::checkIR ( )
int PbusMicroEnable::free ( int  host = 0)
int PbusMicroEnable::get ( std::string  item,
std::string *  value 
)
unsigned long PbusMicroEnable::getIRvector ( )
const char* PbusMicroEnable::getLibName ( )
const char* PbusMicroEnable::getMode ( )
int PbusMicroEnable::getModeId ( )
unsigned long PbusMicroEnable::getState ( )
int PbusMicroEnable::init ( char *  inifile,
int  host = 0 
)
static void PbusMicroEnable::initMicroEnable ( char *  inifile) [static, private]

Initialization of the microEnable interface.

The access to the FD Electronic will be provided in three steps. The handle to the meicroenable is generated, the fpga design is loaded and finally the pointer the the microenable memory map is returned. To keep track of these state the variables

  • menableMounted
  • menableLoaded
  • menableAccessable (mounted) are used.

Try to open the inifile according to the search order:

  • local directory
  • home directory of the cuurent user
  • config directory of FD_DAS_BASE
static void PbusMicroEnable::initPbus ( ) [static, private]

Initialization of the Pbus master.

unsigned long PbusMicroEnable::rawRead ( unsigned long  addr)
void PbusMicroEnable::rawWrite ( unsigned long  addr,
unsigned long  data 
)
void PbusMicroEnable::readBlock ( unsigned long  addr,
unsigned long *  data,
unsigned long  n,
unsigned long  incr = 1 
)
void PbusMicroEnable::reset ( )
int PbusMicroEnable::waitForIR ( int  timeout)

Member Data Documentation

microenable* PbusMicroEnable::board [static, private]

Pointer to the microEnable board as specified by Silicon Software.

Definition at line 114 of file pbusmicroenable.h.

Pointer to the fpga_design as specified for the microEnable by Silicon Software.

Definition at line 119 of file pbusmicroenable.h.

int PbusMicroEnable::IRpolling [static, private]

Time to wait during the IR polling loop.

Definition at line 138 of file pbusmicroenable.h.

bool PbusMicroEnable::menableLoaded [static, private]

Definition at line 126 of file pbusmicroenable.h.

bool PbusMicroEnable::menableMounted [static, private]

Definition at line 124 of file pbusmicroenable.h.

unsigned long* PbusMicroEnable::reg [static, private]

Pointer to the memory segment with the map of the microEnable.

Definition at line 122 of file pbusmicroenable.h.

int PbusMicroEnable::timing [static, private]

Size of the available RAM in test mode.

Time to wait during the read/write loop

Definition at line 135 of file pbusmicroenable.h.


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