CCamac Class Reference

#include <CCamac.h>

List of all members.

Static Public Member Functions

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

Static Private Attributes

static long * m_BranchBases [MAX_BRANCHCOUNT]
 Array of branch base pointers.
static void * m_Fds [MAX_BRANCHCOUNT]
 Array of device fds.


Detailed Description

Definition at line 291 of file CCamac.h.


Member Function Documentation

void CCamac::BranchInit ( int  nBranch  )  [static]

Initialize access to a branch.

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 395 of file CCamac.cpp.

References BranchBase, BRANCHPERCRATE(), m_BranchBases, m_Fds, MAX_BRANCHCOUNT, 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 436 of file CCamac.cpp.

References m_BranchBases, m_Fds, MAX_BRANCHCOUNT, and nBranchSize.

static 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().


Member Data Documentation

long * CCamac::m_BranchBases [static, private]

Array of branch base pointers.

Definition at line 295 of file CCamac.h.

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

void * CCamac::m_Fds [static, private]

Array of device fds.

Definition at line 296 of file CCamac.h.

Referenced by BranchInit(), and BranchRelease().


The documentation for this class was generated from the following files:
Generated on Wed Sep 17 08:38:11 2008 for NSCL Device support. by  doxygen 1.5.1