GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LRA / V5-2-4 > lra / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LRA_readEsr.c File Reference

Routines to read the error and status registers. More...

#include <LRA_p.h>
#include <LRA/LRA_msgs.h>
#include <MSG/MSG_pubdefs.h>
#include <LEM/defs.h>
#include <LEM/encode.h>
#include <LEM/decode.h>
#include <LEM/list.h>
#include <LEM/list_macros.h>
#include <string.h>

Functions

unsigned LRA_readEsr (LRA_esrData *esr)
 Read the error and status registers.
unsigned LRA_doReadEsr (LEM_micr *crl, LRA_esrData *esr)
 Internal routine to read the error and status registers.


Detailed Description

Routines to read the error and status registers.

Author:
Owen H Saxton
$Id: LRA_readEsr.c,v 1.7 2011/03/28 16:18:25 saxton Exp $

Function Documentation

unsigned LRA_doReadEsr ( LEM_micr *  crl,
LRA_esrData esr 
)

Internal routine to read the error and status registers.

This routine reads and stores the contents of a pre-determined set of LAT error and status registers. No error is produced if any of the reads times out.

Parameters:
crl The address of a multi-item command/response list to be used in the register operations.
esr The address of an area to receive the register values
Return values:
LRA_SUCCESS The registers were read successfully

References _LRA_esrData::afe, _LRA_esrData::arc, _LRA_esrData::crc, LRA_decodeAFE(), LRA_decodeARC(), LRA_decodeCRC(), LRA_decodeTRC(), LRA_N_AFE, LRA_N_ARC, LRA_N_CCC, LRA_N_CRC, LRA_N_TCC, LRA_N_TEM, LRA_N_TRC, and _LRA_esrData::trc.

Referenced by LRA_doSendEsr(), and LRA_readEsr().

unsigned LRA_readEsr ( LRA_esrData esr  ) 

Read the error and status registers.

The internal routine is called to read and store the contents of a pre-determined set of LAT error and status registers. No error is reported if a read operation times out.

Parameters:
esr The address of an area to receive the register values
Return values:
LRA_SUCCESS The registers were read successfully
ITC_SENDTID Destination task (LRA) not started

References LRA_doReadEsr().


Generated on Wed Nov 21 20:40:32 2012 by  doxygen 1.5.8