#include <VmePort.h>
Public Member Functions | |
VmePort (unsigned long base, unsigned long size, VmeInterface::AddrMod mod, VmeInterface &interf) | |
Constructor. | |
~VmePort () | |
Destructor. | |
VmeInterface & | getInterface () |
Get the pointer to VmeInterface. | |
unsigned long | getHandle () |
Get the handle. | |
void * | getMap () |
Get the address of the map in VMEM. | |
unsigned long | getBaseAddress () |
Get the base address. | |
unsigned long | getMapSize () |
Get the map size. | |
VmeInterface::AddrMod | getAddrMod () |
Get the address modifier. | |
void | setExceptionTrapping (bool act) |
Enable or disable exception trapping. | |
bool | getExceptionTrapping () |
Returns current exception trapping. | |
long | getLastErrcode () |
Return the last error code. | |
std::string | getErrorMessage (const long errcode) |
Print the message corresponding to an error code. | |
long | getBusErrors () |
Return the number of bus errors. | |
void | busErrorReport () |
Throw exceptions in case of bus errors. | |
unsigned char | read8 (const unsigned long offset) |
Byte read (automatic mapping). | |
unsigned short | read16 (const unsigned long offset) |
unsigned long | read32 (const unsigned long offset) |
Long Word read (automatic mapping). | |
void | write8 (const unsigned long offset, const unsigned char value) |
Byte write (automatic mapping). | |
void | write16 (const unsigned long offset, const unsigned short value) |
Word write (automatic mapping). | |
void | write32 (const unsigned long offset, const unsigned long value) |
Long word write (automatic mapping). | |
void | blockRead32 (const unsigned long offset, unsigned long *buf, const long len) |
32 bits block read (automatic mapping) | |
void | blockRead64 (const unsigned long offset, unsigned long *buf, const long len) |
64 bits block read (automatic mapping) | |
void | blockWrite32 (const unsigned long offset, const unsigned long *buf, const long len) |
32 bits block write (automatic mapping) | |
void | blockWrite64 (const unsigned long offset, const unsigned long *buf, const long len) |
64 bits block write (automatic mapping) | |
void | declareInterruptHandler (VmeInterruptHandler &ih) |
void | cleanInterruptHandlers () |
void | removeInterruptHandler (VmeInterruptHandler &ih) |
void | reEnableInterrupt () |
Re-enable a VME RORA levels (at the end of a RORA interrupt handling). | |
void | blockInterruptNotification () |
Suspend interrupt notification. | |
void | resumeInterruptNotification () |
Resume interrupt notification. | |
Private Attributes | |
unsigned long | m_handle |
unsigned long | m_baseAddress |
unsigned long | m_mapSize |
VmeInterface::AddrMod | m_addrMod |
VmeInterface & | m_interface |
bool | m_exceptionTrapping |
|
Constructor.
Definition at line 71 of file VmePort.h. References m_addrMod, m_baseAddress, m_exceptionTrapping, m_handle, m_interface, m_mapSize, and SctPixelRod::VmeInterface::registerPort(). |
|
Destructor.
Definition at line 79 of file VmePort.h. References SctPixelRod::VmeInterface::deletePort(), and m_interface. |
|
Suspend interrupt notification.
Definition at line 166 of file VmePort.h. References SctPixelRod::VmeInterface::blockInterruptNotification(), and m_interface. |
|
32 bits block read (automatic mapping)
Definition at line 135 of file VmePort.h. References SctPixelRod::VmeInterface::blockRead32(), and m_interface. |
|
64 bits block read (automatic mapping)
Definition at line 139 of file VmePort.h. References SctPixelRod::VmeInterface::blockRead64(), and m_interface. |
|
32 bits block write (automatic mapping)
Definition at line 143 of file VmePort.h. References SctPixelRod::VmeInterface::blockWrite32(), and m_interface. |
|
64 bits block write (automatic mapping)
Definition at line 147 of file VmePort.h. References SctPixelRod::VmeInterface::blockWrite64(), and m_interface. |
|
Throw exceptions in case of bus errors.
Definition at line 107 of file VmePort.h. References SctPixelRod::VmeInterface::busErrorReport(), and m_interface. |
|
Definition at line 155 of file VmePort.h. References SctPixelRod::VmeInterface::cleanInterruptHandlers(), and m_interface. |
|
Definition at line 152 of file VmePort.h. References SctPixelRod::VmeInterface::declareInterruptHandler(), and m_interface. Referenced by SctPixelRod::VmeInterruptHandler::VmeInterruptHandler(). |
|
Get the address modifier.
Definition at line 94 of file VmePort.h. References m_addrMod. |
|
Get the base address.
Definition at line 90 of file VmePort.h. References m_baseAddress. |
|
Return the number of bus errors.
Definition at line 105 of file VmePort.h. References SctPixelRod::VmeInterface::getBusErrors(), and m_interface. |
|
Print the message corresponding to an error code.
Definition at line 102 of file VmePort.h. References SctPixelRod::VmeInterface::getErrorMessage(), and m_interface. |
|
Returns current exception trapping.
Definition at line 98 of file VmePort.h. References m_exceptionTrapping. |
|
Get the handle.
Definition at line 86 of file VmePort.h. References m_handle. |
|
Get the pointer to VmeInterface.
Definition at line 84 of file VmePort.h. References m_interface. Referenced by SctPixelRod::VmeInterruptHandler::activateSoftVector(), SctPixelRod::VmeInterruptHandler::getInterruptData(), and SctPixelRod::VmeInterruptHandler::setInterruptData(). |
|
Return the last error code.
Definition at line 100 of file VmePort.h. References SctPixelRod::VmeInterface::getLastErrcode(), and m_interface. |
|
Get the address of the map in VMEM.
Definition at line 88 of file VmePort.h. References SctPixelRod::VmeInterface::getPortMap(), and m_interface. |
|
Get the map size.
Definition at line 92 of file VmePort.h. References m_mapSize. |
|
Definition at line 114 of file VmePort.h. References m_interface, and SctPixelRod::VmeInterface::read16(). |
|
Long Word read (automatic mapping).
Definition at line 118 of file VmePort.h. References m_interface, and SctPixelRod::VmeInterface::read32(). |
|
Byte read (automatic mapping).
Definition at line 110 of file VmePort.h. References m_interface, and SctPixelRod::VmeInterface::read8(). |
|
Re-enable a VME RORA levels (at the end of a RORA interrupt handling).
Definition at line 162 of file VmePort.h. References m_interface, and SctPixelRod::VmeInterface::reEnableInterrupt(). Referenced by SctPixelRod::VmeInterruptHandler::reEnableInterrupt(). |
|
Definition at line 158 of file VmePort.h. References m_interface, and SctPixelRod::VmeInterface::removeInterruptHandler(). Referenced by SctPixelRod::VmeInterruptHandler::~VmeInterruptHandler(). |
|
Resume interrupt notification.
Definition at line 170 of file VmePort.h. References m_interface, and SctPixelRod::VmeInterface::resumeInterruptNotification(). |
|
Enable or disable exception trapping.
Definition at line 96 of file VmePort.h. References m_exceptionTrapping. |
|
Word write (automatic mapping).
Definition at line 126 of file VmePort.h. References m_interface, and SctPixelRod::VmeInterface::write16(). |
|
Long word write (automatic mapping).
Definition at line 130 of file VmePort.h. References m_interface, and SctPixelRod::VmeInterface::write32(). |
|
Byte write (automatic mapping).
Definition at line 122 of file VmePort.h. References m_interface, and SctPixelRod::VmeInterface::write8(). |
|
Definition at line 178 of file VmePort.h. Referenced by getAddrMod(), and VmePort(). |
|
Definition at line 176 of file VmePort.h. Referenced by getBaseAddress(), and VmePort(). |
|
Definition at line 180 of file VmePort.h. Referenced by getExceptionTrapping(), setExceptionTrapping(), and VmePort(). |
|
Definition at line 175 of file VmePort.h. Referenced by getHandle(), and VmePort(). |
|
Definition at line 179 of file VmePort.h. Referenced by blockInterruptNotification(), blockRead32(), blockRead64(), blockWrite32(), blockWrite64(), busErrorReport(), cleanInterruptHandlers(), declareInterruptHandler(), getBusErrors(), getErrorMessage(), getInterface(), getLastErrcode(), getMap(), read16(), read32(), read8(), reEnableInterrupt(), removeInterruptHandler(), resumeInterruptNotification(), VmePort(), write16(), write32(), write8(), and ~VmePort(). |
|
Definition at line 177 of file VmePort.h. Referenced by getMapSize(), and VmePort(). |