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  

gPDUE.h File Reference

command/response methods for the PDU Environment Monitoring register block More...

#include "GDAB/gdab.h"
#include "GDAB/gpdu_structs.h"

Functions

int gPDUEload (gdabHandle gdab, unsigned short pduAddr, unsigned short regId, pduEnvHandle val)
 Loads a register with val.

int gPDUEread (gdabHandle gdab, unsigned short pduAddr, unsigned short regId, pduEnvHandle val)
 Reads a register returning value in val.


Detailed Description

command/response methods for the PDU Environment Monitoring register block

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

Function Documentation

int gPDUEload gdabHandle  gdab,
unsigned short  pduAddr,
unsigned short  reg,
pduEnvHandle  val
 

Loads a register with val.

Parameters:
gdab gdabHandle containing the COM I/O (gnat) handle
pduAddr PDU address of command
reg register of PDUC to load
val ptr to value to write to the register
Returns:
G_OK on success
Loads a register from the PDU Environment Monitoring block specified by reg with val Included only for debugging and should not be propogated through to the LATTE interface

int gPDUEread gdabHandle  gdab,
unsigned short  pduAddr,
unsigned short  reg,
pduEnvHandle  val
 

Reads a register returning value in val.

Parameters:
gdab gdabHandle containing the COM I/O (gnat) handle
pduAddr PDU address of command
reg register to read
val pointer to storage to hold the response of the read command
Returns:
G_OK on success
Reads the register reg from the PDU Environment Monitoring block 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:04 2003 by doxygen 1.3.3