GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LEM / dev > lem / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

parity_macros.h File Reference

Macros used in setting command parity bits. More...


Defines

#define BSC_PFX_PARITY(CMD, PARITY)   CMD.bsc_pfx.parity_cs ^= (0x1 & (PARITY >> LEM_PARITY_CMD_STRING));
 Invert the parity bits as specified by the parity word.
#define CAL_PFX_PARITY(CMD, PARITY)   CMD.cal_pfx.parity_cs ^= (0x1 & (PARITY >> LEM_PARITY_CMD_STRING));
 Invert the parity bits as specified by the parity word.
#define TKR_PFX_PARITY(CMD, PARITY)   CMD.tkr_pfx.parity_cs ^= (0x1 & (PARITY >> LEM_PARITY_CMD_STRING));
 Invert the parity bits as specified by the parity word.
#define LCL_PLD_PARITY(CMD, PARITY)   CMD.lcl_pld.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));
 Invert the parity bits as specified by the parity word.
#define AEM_ENV_PLD_PARITY(CMD, PARITY)   CMD.aen_pld.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));
 Invert the parity bits as specified by the parity word.
#define ARC_PLD_PARITY(CMD, PARITY)   CMD.arc_pld.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));
 Invert the parity bits as specified by the parity word.
#define AFE_PLD_PARITY(CMD, PARITY)   CMD.afe_pld.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));
 Invert the parity bits as specified by the parity word.
#define CAL_PLD_PARITY(CMD, PARITY)   CMD.cal_cmd.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));
 Invert the parity bits as specified by the parity word.
#define TKR_PLD_PARITY(CMD, PARITY)   CMD.tkr_cmd.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));
 Invert the parity bits as specified by the parity word.
#define LCL_CMD_PARITY(CMD, PARITY)   CMD.lcl_cmd.parity_ad ^= (0x1 & (PARITY >> LEM_PARITY_ACCESS_DESC));
 Invert the parity bits as specified by the parity word.
#define DAB_CMD_PARITY(CMD, PARITY)   CMD.dab_cmd.parity ^= (0x1 & (PARITY >> LEM_PARITY_ACCESS_DESC));
 Invert the parity bits as specified by the parity word.
#define ACD_CMD_PARITY(CMD, PARITY)   CMD.acd_cmd.parity_ad ^= (0x1 & (PARITY >> LEM_PARITY_ACCESS_DESC));
 Invert the parity bits as specified by the parity word.
#define CAL_CMD_PARITY(CMD, PARITY)   CMD.cal_cmd.parity_ad ^= (0x1 & (PARITY >> LEM_PARITY_ACCESS_DESC));
 Invert the parity bits as specified by the parity word.
#define TKR_CMD_PARITY(CMD, PARITY)   CMD.tkr_cmd.parity_ad ^= (0x1 & (PARITY >> LEM_PARITY_ACCESS_DESC));
 Invert the parity bits as specified by the parity word.
#define TEM_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define TIC_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define CCC_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define CRC_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define CFE_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define TCC_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define TRC_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define TFE_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define AEM_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define AEM_ENV_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define ARC_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define AFE_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define PDU_PARITY(CMD, PARITY)   DAB_CMD_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define PDU_ENV_PARITY(CMD, PARITY)   DAB_CMD_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define CRU_PARITY(CMD, PARITY)   DAB_CMD_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define EBM_PARITY(CMD, PARITY)   DAB_CMD_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define EBM_STAT_PARITY(CMD, PARITY)   DAB_CMD_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.
#define GEM_PARITY(CMD, PARITY)   DAB_CMD_PARITY(CMD, PARITY)
 Invert the parity bits as specified by the parity word.


Detailed Description

Macros used in setting command parity bits.

Author:
James Swain & Owen Saxton
$Id: parity_macros.h,v 1.4 2011/03/25 18:51:52 apw Exp $

Define Documentation

#define ACD_CMD_PARITY ( CMD,
PARITY   )     CMD.acd_cmd.parity_ad ^= (0x1 & (PARITY >> LEM_PARITY_ACCESS_DESC));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define AEM_ENV_PARITY ( CMD,
PARITY   ) 

Value:

{\
  BSC_PFX_PARITY(CMD, PARITY) \
  LCL_CMD_PARITY(CMD, PARITY) \
  AEM_ENV_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by AEM_ENV_parity().

#define AEM_ENV_PLD_PARITY ( CMD,
PARITY   )     CMD.aen_pld.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define AEM_PARITY ( CMD,
PARITY   ) 

Value:

{\
  BSC_PFX_PARITY(CMD, PARITY) \
  LCL_CMD_PARITY(CMD, PARITY) \
  LCL_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by AEM_parity().

#define AFE_PARITY ( CMD,
PARITY   ) 

Value:

{\
  BSC_PFX_PARITY(CMD, PARITY) \
  ACD_CMD_PARITY(CMD, PARITY) \
  AFE_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by AFE_parity().

#define AFE_PLD_PARITY ( CMD,
PARITY   )     CMD.afe_pld.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define ARC_PARITY ( CMD,
PARITY   ) 

Value:

{\
  BSC_PFX_PARITY(CMD, PARITY) \
  ACD_CMD_PARITY(CMD, PARITY) \
  ARC_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by ARC_parity().

#define ARC_PLD_PARITY ( CMD,
PARITY   )     CMD.arc_pld.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define BSC_PFX_PARITY ( CMD,
PARITY   )     CMD.bsc_pfx.parity_cs ^= (0x1 & (PARITY >> LEM_PARITY_CMD_STRING));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define CAL_CMD_PARITY ( CMD,
PARITY   )     CMD.cal_cmd.parity_ad ^= (0x1 & (PARITY >> LEM_PARITY_ACCESS_DESC));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define CAL_PFX_PARITY ( CMD,
PARITY   )     CMD.cal_pfx.parity_cs ^= (0x1 & (PARITY >> LEM_PARITY_CMD_STRING));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define CAL_PLD_PARITY ( CMD,
PARITY   )     CMD.cal_cmd.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define CCC_PARITY ( CMD,
PARITY   ) 

Value:

{\
  CAL_PFX_PARITY(CMD, PARITY) \
  LCL_CMD_PARITY(CMD, PARITY) \
  LCL_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by CCC_parity().

#define CFE_PARITY ( CMD,
PARITY   ) 

Value:

{\
  CAL_PFX_PARITY(CMD, PARITY) \
  CAL_CMD_PARITY(CMD, PARITY) \
  CAL_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by CFE_parity().

#define CRC_PARITY ( CMD,
PARITY   ) 

Value:

{\
  CAL_PFX_PARITY(CMD, PARITY) \
  CAL_CMD_PARITY(CMD, PARITY) \
  CAL_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by CRC_parity().

#define CRU_PARITY ( CMD,
PARITY   )     DAB_CMD_PARITY(CMD, PARITY)

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by CRU_parity().

#define DAB_CMD_PARITY ( CMD,
PARITY   )     CMD.dab_cmd.parity ^= (0x1 & (PARITY >> LEM_PARITY_ACCESS_DESC));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define EBM_PARITY ( CMD,
PARITY   )     DAB_CMD_PARITY(CMD, PARITY)

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by EBM_parity().

#define EBM_STAT_PARITY ( CMD,
PARITY   )     DAB_CMD_PARITY(CMD, PARITY)

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by EBM_STAT_parity().

#define GEM_PARITY ( CMD,
PARITY   )     DAB_CMD_PARITY(CMD, PARITY)

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by GEM_parity().

#define LCL_CMD_PARITY ( CMD,
PARITY   )     CMD.lcl_cmd.parity_ad ^= (0x1 & (PARITY >> LEM_PARITY_ACCESS_DESC));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define LCL_PLD_PARITY ( CMD,
PARITY   )     CMD.lcl_pld.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define PDU_ENV_PARITY ( CMD,
PARITY   )     DAB_CMD_PARITY(CMD, PARITY)

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by PDU_ENV_parity().

#define PDU_PARITY ( CMD,
PARITY   )     DAB_CMD_PARITY(CMD, PARITY)

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by PDU_parity().

#define TCC_PARITY ( CMD,
PARITY   ) 

Value:

{\
  TKR_PFX_PARITY(CMD, PARITY) \
  LCL_CMD_PARITY(CMD, PARITY) \
  LCL_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by TCC_parity().

#define TEM_PARITY ( CMD,
PARITY   ) 

Value:

{\
  BSC_PFX_PARITY(CMD, PARITY) \
  LCL_CMD_PARITY(CMD, PARITY) \
  LCL_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by TEM_parity().

#define TFE_PARITY ( CMD,
PARITY   ) 

Value:

{\
  TKR_PFX_PARITY(CMD, PARITY) \
  TKR_CMD_PARITY(CMD, PARITY) \
  TKR_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by TDC_parity(), and TFE_parity().

#define TIC_PARITY ( CMD,
PARITY   ) 

Value:

{\
  BSC_PFX_PARITY(CMD, PARITY) \
  LCL_CMD_PARITY(CMD, PARITY) \
  LCL_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by TIC_parity().

#define TKR_CMD_PARITY ( CMD,
PARITY   )     CMD.tkr_cmd.parity_ad ^= (0x1 & (PARITY >> LEM_PARITY_ACCESS_DESC));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define TKR_PFX_PARITY ( CMD,
PARITY   )     CMD.tkr_pfx.parity_cs ^= (0x1 & (PARITY >> LEM_PARITY_CMD_STRING));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define TKR_PLD_PARITY ( CMD,
PARITY   )     CMD.tkr_cmd.parity_pld ^= (0x1 & (PARITY >> LEM_PARITY_CMD_PAYLOAD));

Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

#define TRC_PARITY ( CMD,
PARITY   ) 

Value:

{\
  TKR_PFX_PARITY(CMD, PARITY) \
  TKR_CMD_PARITY(CMD, PARITY) \
  TKR_PLD_PARITY(CMD, PARITY) \
}
Invert the parity bits as specified by the parity word.

CMD Should be a LATpCommand variable

PARITY Bit field indicating the EVEN/ODD parity requirements

Referenced by TRC_parity().


Generated on Fri Mar 25 12:01:42 2011 by  doxygen 1.5.8