#include <stdlib.h>
#include <string.h>
#include <epicsVersion.h>
#include <epicsAssert.h>
#include <epicsTypes.h>
#include <epicsInterrupt.h>
#include <errlog.h>
#include <iocsh.h>
#include <epicsStdio.h>
#include <epicsExport.h>
#include <devcsr.h>
Go to the source code of this file.
◆ epicsExportRegistrar()
epicsExportRegistrar |
( |
vmesh |
| ) |
|
◆ vmeirq()
void vmeirq |
( |
int |
level, |
|
|
int |
act |
|
) |
| |
En/Disable a VME interrupt level
- Parameters
-
level | The interrupt level (1-7) |
act | 0 - disable, 1 - enable the given level. |
Definition at line 262 of file vmesh.c.
◆ vmeirqattach()
void vmeirqattach |
( |
int |
level, |
|
|
int |
vector, |
|
|
const char * |
itype |
|
) |
| |
Attach a dummy interrupt handler which prints a message to screen
- Parameters
-
level | The interrupt level (1-7) |
vector | The vector code (0-255) |
itype | Either "rora" or "roak" acknowledgement type |
In "roak" (Release On AcKnowledge) the interrupt level is left active when the interrupt occurs. In "rora" (Release On Register Access) the interrupt level is disabled each time the given vector is interrupted. For "rora" vmeirq() should be called after each interrupt to re-enabled the level.
Definition at line 215 of file vmesh.c.
◆ vmeread()
void vmeread |
( |
int |
rawaddr, |
|
|
int |
amod, |
|
|
int |
dmod, |
|
|
int |
count |
|
) |
| |
Read some consecutive VME addresses and print to screen
- Parameters
-
rawaddr | The first VME address to read |
amod | Address width either 8, 16, or 32 |
dmod | Data width either 8, 16, or 32 |
count | Number of read operations |
Definition at line 84 of file vmesh.c.
◆ vmewrite()
void vmewrite |
( |
int |
rawaddr, |
|
|
int |
amod, |
|
|
int |
dmod, |
|
|
int |
rawvalue |
|
) |
| |
Write an integer value to a VME address
- Parameters
-
rawaddr | The first VME address to read |
amod | Address width either 8, 16, or 32 |
dmod | Data width either 8, 16, or 32 |
rawvalue | The value to write |
Definition at line 143 of file vmesh.c.