Doxygen Documentation

Main Index

Package Index

Package:

GDAB

Version:

dev

Marked:

(not marked)

Constituent:

gdab

Tag:

mv2304


Interface   Compound List   File List   Compound Members   File Members  

gEBMSt.c File Reference

Implements command/response for the EBM Statistics register block. More...

#include <string.h>
#include "GDAB/gEBMSt.h"
#include "GDAB/gDAB.h"
#include "gEBM_p.h"
#include "gDAB_p.h"

Functions

int gEBMStcmd (gdabHandle gdab, unsigned short opcode)
 Sends a dataless command to the EBM address.

int gEBMStread (gdabHandle gdab, unsigned short reg, unsigned *value)
 Reads a register returing value in val.


Detailed Description

Implements command/response for the EBM Statistics register block.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

int gEBMStcmd gdabHandle  gdab,
unsigned short  opcode
 

Sends a dataless command to the EBM address.

Parameters:
gdab gdabHandle for EBM
opcode opcode of command to send
Returns:
G_OK on success
Sends the dataless command specified by opcode to the EBM.

int gEBMStread gdabHandle  gdab,
unsigned short  reg,
unsigned *  value
 

Reads a register returing value in val.

Parameters:
gdab gdabHandle for EBM
reg register of EBMSt to read
value pointer to storage to hold the response of the read command
Returns:
G_OK on success
Reads the EBMSt 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 Wed Nov 19 14:55:03 2003 by doxygen 1.3.3