Doxygen Documentation

Main Index

Package Index

Package:

GTEM

Version:

V1-3-4

Marked:

(not marked)

Constituent:

gtem

Tag:

mv2304


Interface   Compound List   File List   Compound Members   File Members  

gGCCC.h File Reference

command/response methods for the GCCC More...


Functions

int gGCCCcmd (gtemHandle gt, unsigned short temAddr, unsigned short gcccAddr, unsigned short opcode)
 Sends a dataless command to the TEM address.

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

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


Detailed Description

command/response methods for the GCCC

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

Function Documentation

int gGCCCcmd gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gcccAddr,
unsigned short  opcode
 

Sends a dataless command to the TEM address.

Parameters:
gt gtemHandle for TEM
temAddr TEM address of command
gcccAddr GCCC address
opcode opcode of command to send
Returns:
G_OK on success
Sends the dataless command specified by opcode to the TEM address specified by temAddr.

int gGCCCload gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gcccAddr,
unsigned short  reg,
unsigned int  value
 

Loads a register with value.

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

int gGCCCread gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gcccAddr,
unsigned short  reg,
unsigned int *  val
 

Reads a register returing value in val.

Parameters:
gt gtemHandle for TEM
temAddr TEM address of command
gcccAddr GCCC address
reg register of GCCC to read
val pointer to storage to hold the response of the read command
Returns:
G_OK on success
Reads the GCCC 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:37:35 2003 by doxygen 1.3.3