devLib2  2.11
Functions
vmesh.c File Reference
#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.

Functions

void vmeread (int rawaddr, int amod, int dmod, int count)
 
void vmewrite (int rawaddr, int amod, int dmod, int rawvalue)
 
void vmeirqattach (int level, int vector, const char *itype)
 
void vmeirq (int level, int act)
 
 epicsExportRegistrar (vmesh)
 

Function Documentation

◆ epicsExportRegistrar()

epicsExportRegistrar ( vmesh  )

◆ vmeirq()

void vmeirq ( int  level,
int  act 
)

En/Disable a VME interrupt level

Parameters
levelThe interrupt level (1-7)
act0 - 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
levelThe interrupt level (1-7)
vectorThe vector code (0-255)
itypeEither "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
rawaddrThe first VME address to read
amodAddress width either 8, 16, or 32
dmodData width either 8, 16, or 32
countNumber 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
rawaddrThe first VME address to read
amodAddress width either 8, 16, or 32
dmodData width either 8, 16, or 32
rawvalueThe value to write

Definition at line 143 of file vmesh.c.