Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

CCamac Class Reference

#include <CCamac.h>

List of all members.

Static Public Methods

void BranchInit (int nBranch)
void BranchRelease (int nBranch)
long * Base (int nBranch)
 Retrieves the base address of a branch.. Null if not mapped.


Static Private Attributes

long * m_BranchBases [MAX_BRANCHCOUNT]
 Array of branch base pointers.

void * m_Fds [MAX_BRANCHCOUNT]
 Array of device fds.


Member Function Documentation

long* CCamac::Base int    nBranch [inline, static]
 

Retrieves the base address of a branch.. Null if not mapped.

Definition at line 304 of file CCamac.h.

References m_BranchBases.

Referenced by CCamacModule::MakePointer().

void CCamac::BranchInit int    nBranch [static]
 

Initialize access to a branch.

  • If the associated BranchBases[] element is not null, this is a no-op.
  • If the associated BranchBases[] element is null, the vme device is opened and a mapping performed for the specified branch. The mapping address is then stored in the BranchBases array.
Parameters:
nBranch  - Number of the branch to access.
Exceptions:
CRangeError  - Thrown if nBranch is out of the range of legal branch numbers.
CErrnoException  - If the mapping failed for any reason.

Definition at line 323 of file CCamac.cpp.

References BranchBase, m_BranchBases, m_Fds, and nBranchSize.

Referenced by CCamacModule::CCamacModule(), and CCamacModule::MakePointer().

void CCamac::BranchRelease int    nBranch [static]
 

Releases access to a map. If the branch has not been mapped, this is a no-op. If the branch has been mapped, munmap is called as well as the VME_KILL_MMAP ioctl on the device driver.

Parameters:
nBranch  - Number of the branch to unmap.
Exceptions:
CRangeError  - If the nBranch parameter is out of range.
CErrnoException  - If the one of the required system services failed to return normal.

Definition at line 364 of file CCamac.cpp.

References m_BranchBases, m_Fds, and nBranchSize.


Member Data Documentation

long * CCamac::m_BranchBases [static, private]
 

Initial value:

 {
  NULL,  NULL, NULL, NULL, NULL, NULL, NULL, NULL }
Array of branch base pointers.

Definition at line 303 of file CCamac.cpp.

Referenced by Base(), BranchInit(), and BranchRelease().

void * CCamac::m_Fds [static, private]
 

Initial value:

 {
  NULL,  NULL, NULL, NULL, NULL, NULL, NULL, NULL }
Array of device fds.

Definition at line 305 of file CCamac.cpp.

Referenced by BranchInit(), and BranchRelease().


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 13:37:10 2002 for Event Readout system. by doxygen1.2.16