Doxygen Documentation

Main Index

Package Index

Package:

GAEM

Version:

V2-1-2

Marked:

(not marked)

Constituent:

gaem

Tag:

sun-gcc


Interface   Compound List   File List   Compound Members   File Members  

gGAFE.c File Reference

Implements command/response for the GAFE. More...

#include "ga_p.h"
#include "gAEM_p.h"
#include "gACD_p.h"
#include "GAEM/gGAFE.h"

Functions

int gGAFEcmd (gaemHandle ga, unsigned short garcAddr, unsigned short gafeAddr, unsigned short opcode)
 Sends a dataless command to the destination GAFE.

int gGAFEload (gaemHandle ga, unsigned short garcAddr, unsigned short gafeAddr, unsigned short reg, unsigned int value)
 Loads a register with value.

int gGAFEread (gaemHandle ga, unsigned short garcAddr, unsigned short gafeAddr, unsigned short reg, unsigned int *val)
 Reads a register returing value in val.


Detailed Description

Implements command/response for the GAFE.

Author:
Curt Brune -- curt@slac.stanford.edu

Function Documentation

int gGAFEcmd gaemHandle  ga,
unsigned short  garcAddr,
unsigned short  gafeAddr,
unsigned short  opcode
 

Sends a dataless command to the destination GAFE.

Parameters:
ga gaemHandle for AEM
garcAddr GARC address
gafeAddr GAFE address
opcode opcode of command to send
Returns:
G_OK on success

int gGAFEload gaemHandle  ga,
unsigned short  garcAddr,
unsigned short  gafeAddr,
unsigned short  reg,
unsigned int  value
 

Loads a register with value.

Parameters:
ga gaemHandle for AEM
garcAddr GARC address
gafeAddr GAFE address
reg register of GAFE to load
value 16-bit value to load into GAFE register
Returns:
G_OK on success
Loads the GAFE register specified by reg with value

int gGAFEread gaemHandle  ga,
unsigned short  garcAddr,
unsigned short  gafeAddr,
unsigned short  reg,
unsigned int *  val
 

Reads a register returing value in val.

Parameters:
ga gaemHandle for TEM
garcAddr GARC address
gafeAddr GAFE address
reg register of GAFE to read
val pointer to storage to hold the response of the read command
Returns:
G_OK on success
Reads the GAFE register specified by reg. val is filled on return.


Generated on Sat Nov 15 15:42:29 2003 by doxygen 1.3.3