GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GNAT / V2-0-1 > gnat_vme / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

VME_p.c.vx-xxx-xxx File Reference

VME Utilities, Platform Dependent Implementation (VxWorks). More...

#include <vxWorks.h>
#include <sysLib.h>
#include <vme.h>

Functions

void sysProbeErrClr (void)
 VxWorks routine to clear any errors before or after a bus probe.
STATUS sysVmeProbe (unsigned int *lclAdr, int readWrite, int size, unsigned int *result)
 VxWorks routine to probe the VME bus.
STATUS sysBusProbe (unsigned int *lclAdr, int readWrite, int size, unsigned int *result)
 VxWorks routine to probe the bus, either PCI or VME.
static volatile unsigned int * toLocal (unsigned int vmeAdr)
 Inline VME to local address translation routine.
int VME_probe (volatile unsigned int *lclAdr)
 Does a read probe of lclAdr.


Detailed Description

VME Utilities, Platform Dependent Implementation (VxWorks).

Author:
JJRussell - russell@slac.stanford.edu
These are the platform dependent implementations of the underlying utilities for VxWorks.

Function Documentation

void sysBusProbe ( unsigned int *  lclAdr,
int  readwrite,
int  size,
unsigned int *  result 
)

VxWorks routine to probe the bus, either PCI or VME.

Routine was not provided as part of a header file, so forced to include and document here. Consult the real VxWorks documentation for how this really works.

Referenced by VME_probe().

void sysProbeErrClr ( void   ) 

VxWorks routine to clear any errors before or after a bus probe.

Routine was not provided as part of a header file, so forced to include and document here. Consult the real VxWorks documentation for how this really works.

void sysVmeProbe ( unsigned int *  lclAdr,
int  readwrite,
int  size,
unsigned int *  result 
)

VxWorks routine to probe the VME bus.

Routine was not provided as part of a header file, so forced to include and document here. Consult the real VxWorks documentation for how this really works.

volatile unsigned int * toLocal ( unsigned int  vmeAdr  )  [static]

Inline VME to local address translation routine.

Parameters:
vmeAdr The VME address to translate.
Returns:
The translate address.
Utility to translate a VME address to its local address equivalent. This routine is only used within the context of this file. The public interface is VME_toLocal.

----------------------------------------------------------------------

References STATUS.

Referenced by VME_vmeClr(), VME_vmeProbe(), VME_vmeRead(), VME_vmeRMW(), VME_vmeSet(), VME_vmeSetAndClr(), VME_vmeToLocal(), and VME_vmeWrite().

int VME_probe ( volatile unsigned int *  lclAdr  ) 

Does a read probe of lclAdr.

Parameters:
lclAdr The local address representation of the VME address to probe.
Returns:
0 if the address is valid, 1 if it is not.
Does a read probe of the specified address on the VME bus. This function can be used as a map function of the VME crate. This routine works only on addresses with are 32 bit readable.

References STATUS, and sysBusProbe().

Referenced by VME_vmeProbe().


Generated on Wed Nov 21 22:06:50 2012 by  doxygen 1.5.8