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  

gGTRC.c File Reference

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

#include <string.h>
#include "gt_p.h"
#include "gTKR_p.h"
#include "GTEM/gGTRC.h"

Functions

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

int gGTRCload (gtemHandle gt, unsigned short temAddr, unsigned short gtccAddr, unsigned short gtrcAddr, unsigned short reg, unsigned long long value)
 Loads a register with value.

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


Detailed Description

Implements command/response for the GTRC.

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

Function Documentation

int gGTRCcmd gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gtccAddr,
unsigned short  gtrcAddr,
unsigned short  opcode
 

Sends a dataless command to the destination.

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

int gGTRCload gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gtccAddr,
unsigned short  gtrcAddr,
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
reg register of GTRC to load
value 16-bit value to load into GTRC register
Returns:
G_OK on success
Loads the GTRC register specified by reg with value

int gGTRCread gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gtccAddr,
unsigned short  gtrcAddr,
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
reg register of GTRC to read
val pointer to storage to hold the response of the read command
Returns:
G_OK on success
See also:
_gGTRCread()
Reads the GTRC 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:03 2003 by doxygen 1.3.3