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  

gGTFE.h File Reference

command/response methods for the GTFE More...


Functions

int gGTFEcmd (gtemHandle gt, unsigned short temAddr, unsigned short gtccAddr, unsigned short gtrcAddr, unsigned short gtfeAddr, unsigned short opcode)
 Sends a dataless command to the destination.

int gGTFEload (gtemHandle gt, unsigned short temAddr, unsigned short gtccAddr, unsigned short gtrcAddr, unsigned short gtfeAddr, unsigned short regId, unsigned long long val)
 Loads a register with value.

int gGTFEread (gtemHandle gt, unsigned short temAddr, unsigned short gtccAddr, unsigned short gtrcAddr, unsigned short gtfeAddr, unsigned short regId, unsigned long long *val)
 Reads a register returing value in val.


Detailed Description

command/response methods for the GTFE

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

Function Documentation

int gGTFEcmd gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gtccAddr,
unsigned short  gtrcAddr,
unsigned short  gtfeAddr,
unsigned short  opcode
 

Sends a dataless command to the destination.

Parameters:
gt gtemHandle for TEM
temAddr TEM address
gtccAddr GTCC address
gtrcAddr GTRC address
gtfeAddr GTFE address
opcode opcode of command to send
Returns:
G_OK on success

int gGTFEload gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gtccAddr,
unsigned short  gtrcAddr,
unsigned short  gtfeAddr,
unsigned short  reg,
unsigned long long  value
 

Loads a register with value.

Parameters:
gt gtemHandle for TEM
temAddr TEM address
gtccAddr GTCC address
gtrcAddr GTRC address
gtfeAddr GTFE address
reg register of GTFE to load
value 16-bit value to load into GTFE register
Returns:
G_OK on success
Loads the GTFE register specified by reg with value

int gGTFEread gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gtccAddr,
unsigned short  gtrcAddr,
unsigned short  gtfeAddr,
unsigned short  reg,
unsigned long long *  val
 

Reads a register returing value in val.

Parameters:
gt gtemHandle for TEM
temAddr temAddrination of command
gtccAddr GTCC address
gtrcAddr GTRC address
gtfeAddr GTFE address
reg register of GTFE to read
val pointer to storage to hold the response of the read command
Returns:
G_OK on success
See also:
_gGTFEread()
Reads the GTFE 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