#include <RCCVmeInterface.h>
Inheritance diagram for SctPixelRod::RCCVmeInterface:
Public Member Functions | |
RCCVmeInterface () | |
Constructor. | |
~RCCVmeInterface () | |
Destructor. | |
virtual void | declareInterruptHandler (VmeInterruptHandler &handler) |
Install an interrupt handler. | |
virtual void | cleanInterruptHandlers () |
Uninstall all the handlers. | |
virtual void | removeInterruptHandler (VmeInterruptHandler &handler) |
Remove an interrupt handler. | |
virtual void | activateSoftVector (unsigned char vect, unsigned char subvect) |
Set the interrupt subvector mask. | |
virtual void | reEnableInterrupt () |
Re-enable VME RORA levels. | |
virtual void | blockInterruptNotification () |
Suspend interrupt notification. | |
virtual void | resumeInterruptNotification () |
Resume interrupt notification. | |
virtual void | setInterruptData (long data) |
Set the interrupt data word. | |
virtual long | getInterruptData () |
Read the interrupt data word. | |
virtual long | getBusErrors () |
Return the number of bus errors. | |
virtual void | busErrorReport () |
Throw exceptions in case of bus errors. | |
virtual void | busErrorReport (const unsigned long handle) |
virtual void | busErrorReport (VmePort &port) |
virtual long | getLastErrcode () |
Return the last error code. | |
virtual std::string | getErrorMessage (const long errcode) |
Print the message corresponding to an error code. | |
virtual unsigned char | read8 (const unsigned long handle, const unsigned long offset) |
Byte read (automatic mapping). | |
virtual unsigned short | read16 (const unsigned long handle, const unsigned long offset) |
Word read (automatic mapping). | |
virtual unsigned long | read32 (const unsigned long handle, const unsigned long offset) |
Long Word read (automatic mapping). | |
virtual void | write8 (const unsigned long handle, const unsigned long offset, const unsigned char value) |
Byte write (automatic mapping). | |
virtual void | write16 (const unsigned long handle, const unsigned long offset, const unsigned short value) |
Word write (automatic mapping). | |
virtual void | write32 (const unsigned long handle, const unsigned long offset, const unsigned long value) |
Long word write (automatic mapping). | |
virtual void | blockRead32 (VmePort &port, const unsigned long offset, unsigned long *buf, const long len) |
32 bits block read (automatic mapping) | |
virtual void | blockRead64 (VmePort &port, const unsigned long offset, unsigned long *buf, const long len) |
64 bits block read (automatic mapping) | |
virtual void | blockWrite32 (VmePort &port, const unsigned long offset, const unsigned long *buf, const long len) |
32 bits block write (automatic mapping) | |
virtual void | blockWrite64 (VmePort &port, const unsigned long offset, const unsigned long *buf, const long len) |
64 bits block write (automatic mapping) | |
virtual unsigned long | registerPort (VmePort &port) |
Register a new VmePort object. | |
virtual void | deletePort (VmePort &port) |
Delete a VmePort. | |
virtual void * | getPortMap (const unsigned long handle) |
Return a pointer to the port map. | |
Private Member Functions | |
int | m_RCCAddrMod (VmeInterface::AddrMod mod) |
void | m_blockTransferRead (unsigned long *buf) |
Generic block transfer read. | |
void | m_blockTransferWrite (const unsigned long *buf) |
Generic block transfer write. | |
Static Private Member Functions | |
void | m_busErrorHandler (int signum) |
SIGBUS handler. | |
void | m_exitHandler (int signum) |
Exit handler. | |
void | m_interruptHandler (int signum) |
Interrupt handler. | |
void | m_interruptSignal (int signum) |
Private Attributes | |
std::vector< VmePort * > | m_ports |
VME_BlockTransferList_t | m_btList |
int | m_dmaBuf |
long | m_dmaBufSize |
VME_BusErrorInfo_t | m_busErrInfo |
int | m_lastErrcode |
VME_InterruptList_t | m_irq [8] |
Static Private Attributes | |
long | m_busErrors |
int | m_irqId [8] |
long | m_interruptData |
sigset_t | m_sigMask |
RCCVmeInterface * | m_if |
unsigned char | m_softVectMask [256] |
VmeInterruptHandler * | m_hardIH [8][256][10] |
VmeInterruptHandler * | m_softIH [32][10] |
|
Constructor.
|
|
Destructor.
|
|
Set the interrupt subvector mask.
Implements SctPixelRod::VmeInterface. Definition at line 44 of file RCCVmeInterface.h. References m_softVectMask. |
|
Suspend interrupt notification.
Implements SctPixelRod::VmeInterface. |
|
32 bits block read (automatic mapping)
Implements SctPixelRod::VmeInterface. |
|
64 bits block read (automatic mapping)
Implements SctPixelRod::VmeInterface. |
|
32 bits block write (automatic mapping)
Implements SctPixelRod::VmeInterface. |
|
64 bits block write (automatic mapping)
Implements SctPixelRod::VmeInterface. |
|
Implements SctPixelRod::VmeInterface. |
|
Implements SctPixelRod::VmeInterface. |
|
Throw exceptions in case of bus errors.
Implements SctPixelRod::VmeInterface. |
|
Uninstall all the handlers.
Implements SctPixelRod::VmeInterface. |
|
Install an interrupt handler.
Implements SctPixelRod::VmeInterface. |
|
Delete a VmePort.
Implements SctPixelRod::VmeInterface. |
|
Return the number of bus errors.
Implements SctPixelRod::VmeInterface. |
|
Print the message corresponding to an error code.
Implements SctPixelRod::VmeInterface. |
|
Read the interrupt data word.
Implements SctPixelRod::VmeInterface. Definition at line 60 of file RCCVmeInterface.h. References m_interruptData. |
|
Return the last error code.
Implements SctPixelRod::VmeInterface. Definition at line 71 of file RCCVmeInterface.h. References m_lastErrcode. |
|
Return a pointer to the port map.
Implements SctPixelRod::VmeInterface. |
|
Generic block transfer read.
|
|
Generic block transfer write.
|
|
SIGBUS handler.
|
|
Exit handler.
|
|
Interrupt handler.
|
|
|
|
|
|
Word read (automatic mapping).
Implements SctPixelRod::VmeInterface. |
|
Long Word read (automatic mapping).
Implements SctPixelRod::VmeInterface. |
|
Byte read (automatic mapping).
Implements SctPixelRod::VmeInterface. |
|
Re-enable VME RORA levels.
Implements SctPixelRod::VmeInterface. |
|
Register a new VmePort object.
Implements SctPixelRod::VmeInterface. |
|
Remove an interrupt handler.
Implements SctPixelRod::VmeInterface. |
|
Resume interrupt notification.
Implements SctPixelRod::VmeInterface. |
|
Set the interrupt data word.
Implements SctPixelRod::VmeInterface. Definition at line 56 of file RCCVmeInterface.h. References m_interruptData. |
|
Word write (automatic mapping).
Implements SctPixelRod::VmeInterface. |
|
Long word write (automatic mapping).
Implements SctPixelRod::VmeInterface. |
|
Byte write (automatic mapping).
Implements SctPixelRod::VmeInterface. |
|
Definition at line 106 of file RCCVmeInterface.h. |
|
Definition at line 109 of file RCCVmeInterface.h. |
|
Definition at line 110 of file RCCVmeInterface.h. |
|
Definition at line 107 of file RCCVmeInterface.h. |
|
Definition at line 108 of file RCCVmeInterface.h. |
|
Definition at line 119 of file RCCVmeInterface.h. |
|
Definition at line 117 of file RCCVmeInterface.h. |
|
Definition at line 115 of file RCCVmeInterface.h. Referenced by getInterruptData(), and setInterruptData(). |
|
Definition at line 112 of file RCCVmeInterface.h. |
|
Definition at line 114 of file RCCVmeInterface.h. |
|
Definition at line 111 of file RCCVmeInterface.h. Referenced by getLastErrcode(). |
|
Definition at line 105 of file RCCVmeInterface.h. |
|
Definition at line 116 of file RCCVmeInterface.h. |
|
Definition at line 120 of file RCCVmeInterface.h. |
|
Definition at line 118 of file RCCVmeInterface.h. Referenced by activateSoftVector(). |