Doxygen Documentation

Main Index

Package Index

Package:

GAEM

Version:

V2-1-2

Marked:

(not marked)

Constituent:

vaem

Tag:

linux-gcc


Interface   Compound List   File List   Compound Members   File Members  

gGARC.c File Reference

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

#include "ga_p.h"
#include "gAEM_p.h"
#include "gACD_p.h"
#include "GAEM/gGARC.h"

Functions

int gGARCcmd (gaemHandle ga, unsigned short garcAddr, unsigned short opcode)
 Sends a dataless command to the destination.

int gGARCload (gaemHandle ga, unsigned short garcAddr, unsigned short reg, unsigned int value)
 Loads a register with value.

int gGARCread (gaemHandle ga, unsigned short garcAddr, unsigned short reg, unsigned int *val)
 Reads a register returing value in val.


Detailed Description

Implements command/response for the GARC.

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

Function Documentation

int gGARCcmd gaemHandle  ga,
unsigned short  garcAddr,
unsigned short  opcode
 

Sends a dataless command to the destination.

Parameters:
ga gaemHandle for AEM
garcAddr GARC address
opcode opcode of command to send
Returns:
G_OK on success

int gGARCload gaemHandle  ga,
unsigned short  garcAddr,
unsigned short  reg,
unsigned int  value
 

Loads a register with value.

Parameters:
ga gaemHandle for AEM
garcAddr GARC address
reg register of GARC to load
value 16-bit value to load into GARC register
Returns:
G_OK on success
Loads the GARC register specified by reg with value

int gGARCread gaemHandle  ga,
unsigned short  garcAddr,
unsigned short  reg,
unsigned int *  val
 

Reads a register returing value in val.

Parameters:
ga gaemHandle for TEM
garcAddr GARC address
reg register of GARC to read
val pointer to storage to hold the response of the read command
Returns:
G_OK on success
Reads the GARC 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:42:08 2003 by doxygen 1.3.3