#include <CCamac.h>
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. | |
Definition at line 291 of file CCamac.h.
| void CCamac::BranchInit | ( | int | nBranch | ) | [static] |
Initialize access to a branch.
| nBranch | - Number of the branch to access. |
| 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.
| nBranch | - Number of the branch to unmap. |
| 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().
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().
1.5.1