GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LATC / V9-1-2

Constituent: latc     Tag: mcp750


Interface   Data Structures   File List   Data Fields   Globals  

lem.c File Reference

Definition of functions used to interface with the DAB and DEM packages. More...

#include "LATC/LATC_msgs.h"
#include "LATC/lrd.h"
#include "lem_p.h"
#include "data.h"
#include "AG_addr_s.h"
#include "AG_regEnums_s.h"
#include "MSG/MSG_pubdefs.h"
#include "LEM/msg_macros.h"
#include "LEM/decode.h"
#include "LEM/encode.h"

Include dependency graph for lem.c:


Functions

static void modifyBroadcast (LATC_addr *lem_addr, const LATC_addr *latc_addr)
 Copy the address components from latc_addr into lem_addr modifying each occurance of LATC_BCAST_ADDR to be BCAST.
unsigned LATC_loadGEM (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readGEM (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadAOC (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Reports LATC_NOIMPL.
unsigned LATC_readAOC (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Reports LATC_NOIMPL.
unsigned LATC_loadWIN (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readWIN (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadSCH (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readSCH (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadTAM (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTAM (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadROI (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readROI (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadTIE (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTIE (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadAEM (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readAEM (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadARC (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readARC (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadAFE (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readAFE (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadTEM (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTEM (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadTIC (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTIC (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadCCC (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readCCC (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadCRC (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readCRC (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadCFE (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readCFE (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadTCC (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTCC (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadTRC (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTRC (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadTFE (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTFE (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the register regId of the named component.
unsigned LATC_loadTDC (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Load the (onlt) register regId of the "TDC" psuedo-component (actually part of the TFE) with value.
unsigned LATC_readTDC (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Read the (only) register regId of the "TDC" psuedo-component (actually part of the TFE).
unsigned LATC_readSPT (LEM_micr *cr, const LATC_addr *addr, unsigned regId)
 Does nothing, since one doesn't read the SPT values directly.
unsigned LATC_loadSPT (LEM_micr *cr, const LATC_addr *addr, unsigned regId, const void *value)
 Does nothing, since one doesn't load the SPT values directly.
void LATC_decodeGEM (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeAOC (unsigned short *pkt, void *ptr)
 Reports LATC_NOIMPL.
void LATC_decodeWIN (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeSCH (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeTAM (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeROI (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeTIE (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeAEM (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeARC (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeAFE (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeTEM (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeTIC (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeCCC (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeCRC (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeCFE (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeTCC (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeTRC (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeTFE (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeTDC (unsigned short *pkt, void *ptr)
 Decode a result item containing the data for a register of the "TDC" psuedo-component.
void LATC_decodeSPT (unsigned short *pkt, void *ptr)
 Decode the result item.

Detailed Description

Definition of functions used to interface with the DAB and DEM packages.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

void LATC_decodeAEM unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeAFE unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeAOC unsigned short *  pkt,
void *  ptr
 

Reports LATC_NOIMPL.

Parameters:
pkt Ignored
ptr Ignored

void LATC_decodeARC unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeCCC unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeCFE unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeCRC unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeGEM unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeROI unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeSCH unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeSPT unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeTAM unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeTCC unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeTDC unsigned short *  pkt,
void *  ptr
 

Decode a result item containing the data for a register of the "TDC" psuedo-component.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeTEM unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeTFE unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeTIC unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeTIE unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeTRC unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

void LATC_decodeWIN unsigned short *  pkt,
void *  ptr
 

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value

unsigned LATC_loadAEM LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadAFE LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadAOC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Reports LATC_NOIMPL.

Parameters:
cr Ignored
addr Ignored
regId Ignored
value Ignored

unsigned LATC_loadARC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadCCC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadCFE LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadCRC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadGEM LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadROI LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadSCH LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadSPT LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Does nothing, since one doesn't load the SPT values directly.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadTAM LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadTCC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadTDC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the (onlt) register regId of the "TDC" psuedo-component (actually part of the TFE) with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
value Ptr to value to load into the register
regId Ignored

unsigned LATC_loadTEM LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadTFE LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadTIC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadTIE LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadTRC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_loadWIN LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId,
const void *  value
 

Load the register regId of the named component with value.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

unsigned LATC_readAEM LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readAFE LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readAOC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Reports LATC_NOIMPL.

Parameters:
cr Ignored
addr Ignored
regId Ignored

unsigned LATC_readARC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readCCC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readCFE LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to a multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readCRC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readGEM LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readROI LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readSCH LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readSPT LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Does nothing, since one doesn't read the SPT values directly.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readTAM LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readTCC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readTDC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the (only) register regId of the "TDC" psuedo-component (actually part of the TFE).

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Ignored

unsigned LATC_readTEM LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readTFE LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readTIC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readTIE LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readTRC LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

unsigned LATC_readWIN LEM_micr *  cr,
const LATC_addr addr,
unsigned  regId
 

Read the register regId of the named component.

Parameters:
cr Pointer to an LCB multi-item command/response list
addr Pointer to an address structure
regId Register ID of the target register

void modifyBroadcast LATC_addr lem_addr,
const LATC_addr latc_addr
[inline, static]
 

Copy the address components from latc_addr into lem_addr modifying each occurance of LATC_BCAST_ADDR to be BCAST.

Parameters:
lem_addr Structure holding the address using "BCAST" as the broadcast flag
latc_addr Structure holding the address using "LATC_BCAST_ADDR" as the broadcast flag


Generated on Sat Oct 25 01:19:35 2008 by  doxygen 1.4.4