GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GNAT / V2-0-1 > gnat_vme / mv2304
Functions | |
int | VME_probe (volatile unsigned int *lclAdr) |
Does a read probe of lclAdr. | |
int | VME_vmeProbe (unsigned int vmeAdr) |
Does a read probe of vmeAdr. | |
volatile unsigned int * | VME_vmeToLocal (unsigned int vmeAdr) |
Translates a vme address to its local address equivalent. | |
unsigned int | VME_vmeRead (unsigned int vmeAdr) |
Reads the value at the specified VME location. | |
unsigned int | VME_vmeWrite (unsigned int vmeAdr, unsigned int val) |
Reads the value at the specified VME location. | |
unsigned int | VME_vmeSet (unsigned int vmeAdr, unsigned int set) |
Sets the bits in set. | |
unsigned int | VME_vmeClr (unsigned int vmeAdr, unsigned int clr) |
Clears the bits in clr. | |
unsigned int | VME_vmeSetAndClr (unsigned int vmeAdr, unsigned int set, unsigned int clr) |
Does a selective set and clear. | |
unsigned int | VME_vmeRMW (unsigned int vmeAdr, unsigned int mask, unsigned int val) |
Performs a read/modify/write on the specified VME location. |
Very basic set of VME utilities. There is nothing fancy here, but using these routines provides at least the ability to link on the host, and in very simple cases, to run on the host.
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().
unsigned int VME_vmeClr | ( | unsigned int | vmeAdr, | |
unsigned int | clr | |||
) |
Clears the bits in clr.
vmeAdr | The VME address to modify to. | |
clr | The bits to clear (the bits to be cleareed are set to 1). |
References toLocal().
int VME_vmeProbe | ( | unsigned int | vmeAdr | ) |
Does a read probe of vmeAdr.
vmeAdr | The VME address to probe. |
References toLocal(), and VME_probe().
unsigned int VME_vmeRead | ( | unsigned int | vmeAdr | ) |
Reads the value at the specified VME location.
vmeAdr | The VME address to read. |
References toLocal().
unsigned int VME_vmeRMW | ( | unsigned int | vmeAdr, | |
unsigned int | mask, | |||
unsigned int | value | |||
) |
Performs a read/modify/write on the specified VME location.
vmeAdr | The VME address to modify. | |
mask | A bit mask indicating which bits should be modified. | |
value | Each bit that is set to a 1 will be set to a 0 in the output location. |
By definition this involves a read/modify/write operation. This routine does not perform this operation in an interlocked fashion.
References toLocal().
unsigned int VME_vmeSet | ( | unsigned int | vmeAdr, | |
unsigned int | set | |||
) |
Sets the bits in set.
vmeAdr | The VME address to modify to. | |
set | The bits to set. |
References toLocal().
unsigned int VME_vmeSetAndClr | ( | unsigned int | vmeAdr, | |
unsigned int | set, | |||
unsigned int | clr | |||
) |
Does a selective set and clear.
vmeAdr | The VME address to modify to. | |
set | Each bit that is set to a 1 will be set to a 1 in the output location. | |
clr | Each bit that is set to a 1 will be set to a 0 in the output location. |
The routine, by definition first sets the bits in the specified in the 'set' parameter, then clears the bits in the 'clr' parameter. This means that the when both are specified, the clear bit wins.
By definition this involves a read/modify/write operation. This routine does not perform this operation in an interlocked fashion.
References toLocal().
volatile unsigned int * VME_vmeToLocal | ( | unsigned int | vmeAdr | ) |
Translates a vme address to its local address equivalent.
vmeAdr | The VME address to translate. |
References toLocal().
unsigned int VME_vmeWrite | ( | unsigned int | vmeAdr, | |
unsigned int | value | |||
) |
Reads the value at the specified VME location.
vmeAdr | The VME address to write to. | |
value | The value to write. |
References toLocal().