GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PIG / V10-1-5 > pig_flying / rhel5-64
#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. |
$Id: pig_macro_p.h,v 1.20 2011/03/28 17:15:49 saxton Exp $
#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);
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);
#define REMOVE_CR_NODE | ( | NODE_MASK, | |||
CMD, | |||||
RSP | ) |
Value:
CMD &= ~(NODE_MASK); \ RSP &= ~(NODE_MASK);
Referenced by cmdrsp_init().