GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PIG / V10-1-5 > pig_flying / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

pig_macro_p.h File Reference

Definition of the macros used in the PIG functions. More...

#include <LEM/encode.h>
#include <LEM/list_macros.h>

Defines

#define LOOK_AT_ME_EPU(CRP, EPU_ADDR, SIU_ADDR)
 Broadcast a LOOK_AT_ME to the EPU including the EPU physical address and the address of the commanding SIU.
#define ADD_CR_NODE(CRP, NODE_MASK, CMD, RSP)
 Add the node specified to the command response masks and insert commands to bcast to the node.
#define REMOVE_CR_NODE(NODE_MASK, CMD, RSP)
 Remove the specified node from the command response masks.


Detailed Description

Definition of the macros used in the PIG functions.

Author:
James Swain & Owen Saxton
$Id: pig_macro_p.h,v 1.20 2011/03/28 17:15:49 saxton Exp $

Define Documentation

#define ADD_CR_NODE ( CRP,
NODE_MASK,
CMD,
RSP   ) 

Value:

CMD |= (NODE_MASK); \
  RSP |= (NODE_MASK); \
  LEM_LOAD(CRP, CRU_encode, CRU_COMMAND, NODE_MASK); \
  LAM_encode (LEM_NEXT_CI(CRP), LEM_ADDR_SLV_BCAST); \
  LEM_Q_IF_FULL(CRP, LEM_handleLoadErrors);
Add the node specified to the command response masks and insert commands to bcast to the node.

Referenced by cmdrsp_init().

#define LOOK_AT_ME_EPU ( CRP,
EPU_ADDR,
SIU_ADDR   ) 

Value:

LAM_LCB_encode(LEM_NEXT_CI(CRP), LEM_ADDR_MST_BCAST, \
                 (SIU_ADDR << 17) | (EPU_ADDR << 8), 0xe1f00);  \
  LEM_Q_IF_FULL(CRP, LEM_handleLoadErrors);
Broadcast a LOOK_AT_ME to the EPU including the EPU physical address and the address of the commanding SIU.

#define REMOVE_CR_NODE ( NODE_MASK,
CMD,
RSP   ) 

Value:

CMD &= ~(NODE_MASK); \
  RSP &= ~(NODE_MASK);
Remove the specified node from the command response masks.

Referenced by cmdrsp_init().


Generated on Tue Nov 29 18:55:56 2011 by  doxygen 1.5.8