Doxygen Documentation

Main Index

Package Index

Package:

GTEM

Version:

V1-3-4

Marked:

(not marked)

Constituent:

gtem

Tag:

linux-gcc


Interface   Compound List   File List   Compound Members   File Members  

gGCFE.h File Reference

command/response methods for the GCFE More...


Functions

int gGCFEcmd (gtemHandle gt, unsigned short temAddr, unsigned short gcccAddr, unsigned short gcrcAddr, unsigned short gcfeAddr, unsigned short opcode)
 Sends a dataless command to the destination.

int gGCFEload (gtemHandle gt, unsigned short temAddr, unsigned short gcccAddr, unsigned short gcrcAddr, unsigned short gcfeAddr, unsigned short regId, unsigned short val)
 Loads a register with value.

int gGCFEread (gtemHandle gt, unsigned short temAddr, unsigned short gcccAddr, unsigned short gcrcAddr, unsigned short gcfeAddr, unsigned short regId, unsigned short *val)
 Reads a register returing value in val.


Detailed Description

command/response methods for the GCFE

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

Function Documentation

int gGCFEcmd gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gcccAddr,
unsigned short  gcrcAddr,
unsigned short  gcfeAddr,
unsigned short  opcode
 

Sends a dataless command to the destination.

Parameters:
gt gtemHandle for TEM
temAddr TEM address
gcccAddr GCCC address
gcrcAddr GCRC address
gcfeAddr GCFE address
opcode opcode of command to send
Returns:
G_OK on success

int gGCFEload gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gcccAddr,
unsigned short  gcrcAddr,
unsigned short  gcfeAddr,
unsigned short  reg,
unsigned short  value
 

Loads a register with value.

Parameters:
gt gtemHandle for TEM
temAddr TEM address
gcccAddr GCCC address
gcrcAddr GCRC address
gcfeAddr GCFE address
reg register of GCFE to load
value 16-bit value to load into GCFE register
Returns:
G_OK on success
Loads the GCFE register specified by reg with value

int gGCFEread gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gcccAddr,
unsigned short  gcrcAddr,
unsigned short  gcfeAddr,
unsigned short  reg,
unsigned short *  val
 

Reads a register returing value in val.

Parameters:
gt gtemHandle for TEM
temAddr temAddrination of command
gcccAddr GCCC address
gcrcAddr GCRC address
gcfeAddr GCFE address
reg register of GCFE to read
val pointer to storage to hold the response of the read command
Returns:
G_OK on success
See also:
_gGCFEread()
Reads the GCFE register specified by reg. val is filled on return.

The following error codes are returned when LATp errors occur:

  • GERR_LATP_HEADER_PARITY
  • GERR_LATP_CELL_PARITY
  • GERR_LATP_TRUNCATE


Generated on Sat Nov 15 15:36:02 2003 by doxygen 1.3.3