Doxygen Documentation

Main Index

Package Index

Package:

GTEM

Version:

V1-3-4

Marked:

(not marked)

Constituent:

gtem

Tag:

sun-gcc


Interface   Compound List   File List   Compound Members   File Members  

gGCRC.c File Reference

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

#include <string.h>
#include "gt_p.h"
#include "gCAL_p.h"
#include "GTEM/gGCRC.h"

Functions

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

int gGCRCload (gtemHandle gt, unsigned short temAddr, unsigned short gcccAddr, unsigned short gcrcAddr, unsigned short reg, unsigned short value)
 Loads a register with value.

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


Detailed Description

Implements command/response for the GCRC.

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

Function Documentation

int gGCRCcmd gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gcccAddr,
unsigned short  gcrcAddr,
unsigned short  opcode
 

Sends a dataless command to the destination.

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

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

int gGCRCread gtemHandle  gt,
unsigned short  temAddr,
unsigned short  gcccAddr,
unsigned short  gcrcAddr,
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
reg register of GCRC to read
val pointer to storage to hold the response of the read command
Returns:
G_OK on success
See also:
_gGCRCread()
Reads the GCRC 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:01 2003 by doxygen 1.3.3