GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GNAT / V2-0-1 > gnat_vme / mv2304
#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. |
These are the platform dependent implementations of the underlying utilities for VxWorks.
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.
vmeAdr | The VME address to translate. |
----------------------------------------------------------------------
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.
lclAdr | The local address representation of the VME address to probe. |
References STATUS, and sysBusProbe().
Referenced by VME_vmeProbe().