GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCFG / V1-2-5 > lcfg / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

LCFG_latp.c File Reference

Functions for performing LATp operations. More...

#include <LCFG_p.h>
#include <LCFG/LCFG_msgs.h>
#include <RIM/RIM.h>
#include <MSG/MSG_pubdefs.h>
#include <LEM/msg_macros.h>
#include <LEM/list.h>
#include <LEM/decode.h>

Defines

#define NELEM(x)   (sizeof x / sizeof x[0])

Functions

unsigned LCFG_setTrigger (RIM *rim, int enable, int marker, LEM_micr *cr)
 Enable or disable triggers.


Detailed Description

Functions for performing LATp operations.

Author:
James Swain & Owen Saxton
Id
LCFG_latp.c,v 1.6 2011/03/27 17:13:33 saxton Exp

Function Documentation

unsigned LCFG_setTrigger ( RIM *  rim,
int  enable,
int  marker,
LEM_micr *  cr 
)

Enable or disable triggers.

This routine enables or disables LAT triggers. If the marker parameter is non-zero, the LAT is first configured to broadcast a trigger message to all CPUs upon receipt of a solicited trigger, a solicited trigger is issued, and the configuration restored from the RIM data.

Parameters:
rim RIM structure containing LAT configuration data
enable If non-zero, triggers are anabled; otherwise disabled
marker If non-zero, causes a solicited trigger with this value in the event data.
cr Pointer to the multi-item command/response list.
Return values:
LCFG_SUCCESS if all goes well
LEM_* if there is an error arising from one of the register load commands

Referenced by LCFG_disableTriggers(), and LCFG_enableTriggers().


Generated on Wed Nov 21 20:08:07 2012 by  doxygen 1.5.8