GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> RIM / V3-1-2 > trim / rad750


Interface   Data Structures   File List   Data Fields   Globals  

t_latp.c File Reference

Test the functions that will interact with the LAT. More...

#include <test_rim_p.h>
#include <RIM_p.h>
#include <RIM_descriptions.ic>
#include <RIM_number.ic>
#include <RIM_AG_init_p.h>
#include <RIM_AG_types_p.h>
#include <RIM/RIM_msgs.h>
#include <stdlib.h>

Defines

#define SET_FIRST_ERROR   { if (!latp_error) latp_error = __LINE__; }
 Record the line number of the first error encountered.

Functions

void advanceReg (const CptDescription *cd)
 Move to the next regid.
void advanceIdx (void)
 Move to the next index.
void advanceTyp (void)
 Advance to the next type.
RIM_loadFn ** LATC_newLoad (void)
 Build an array of function pointers associating RIM_type to a function that loads the registers of that type.
RIM_readFn ** LATC_newRead (void)
 Build an array of function pointers associating RIM_tye to a function that reads the registers of that type.
RIM_decodeFn ** LATC_newDecode (void)
 Build an array of function pointers associating RIM_type to a function that decodes the payloads.
void LATC_deleteLoad (RIM_loadFn **load)
 Free the memory previously allocated using LATC_newLoad.
void LATC_deleteRead (RIM_readFn **read)
 Free the memory previously allocated using LATC_newRead.
unsigned LATC_loadGEM (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readGEM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadWIN (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readWIN (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadTAM (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTAM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadSCH (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readSCH (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadROI (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readROI (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadTIE (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTIE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadAEM (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readAEM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadARC (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readARC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadAFE (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readAFE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadTEM (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTEM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadTIC (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTIC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadCCC (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readCCC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadCRC (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readCRC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadCFE (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readCFE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadTCC (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTCC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadTRC (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTRC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadTFE (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the register regId of the named component with value.
unsigned LATC_readTFE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadTDC (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Load the (only) register regId of the "TDC" psuedo-component (actually part of the TFE) with value.
unsigned LATC_readTDC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
unsigned LATC_loadSPT (void *param, const RIM_addr *addr, unsigned regId, const void *value)
 Does nothing, since one doesn't load the SPT values directly.
unsigned LATC_readSPT (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
void LATC_decodeGEM (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeWIN (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeTAM (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeSCH (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeROI (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeTIE (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeAEM (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeARC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeAFE (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeTEM (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeTIC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeCCC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeCRC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeCFE (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeTCC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeTRC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeTFE (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
void LATC_decodeTDC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode a result item containing the data for a register of the "TDC" psuedo-component.
void LATC_decodeSPT (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info)
 Decode the result item.
unsigned t_latp (void *param)
 Test the RIM latp functions.
unsigned checkRead (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info)
 Generic function checking the parameters to the read function.
void LATC_deleteDecode (RIM_decodeFn **decode)
 Free the memory previously allocated using LATC_newDecode.
unsigned LATC_readGEM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readWIN (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readSCH (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readTAM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readROI (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readTIE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readAEM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readARC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readAFE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readTEM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readTIC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readCCC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readCRC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readCFE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readTCC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readTRC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readTFE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the register regId of the named component.
unsigned LATC_readTDC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Read the (only) register regId of the "TDC" psuedo-component (actually part of the TFE).
unsigned LATC_readSPT (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info)
 Does nothing, since one doesn't read the SPT values directly.

Variables

static unsigned latp_error = 0
static void * passthru = (void *)(0xdeafabba)
static unsigned e_type = 0
static unsigned e_index = 0
static unsigned e_regid = 0
static RIM_readFn ** e_rdFn
static RIM_loadFn ** e_ldFn
static RIM_decodeFn ** e_ddFn
static RIMrim
static RIM_mapign


Detailed Description

Test the functions that will interact with the LAT.

Author:
James Swain & Owen Saxton
$Id: t_latp.c,v 1.7 2011/03/27 06:43:06 saxton Exp $

Function Documentation

void advanceIdx ( void   ) 

Move to the next index.

References advanceTyp(), and checkBit().

Referenced by advanceReg().

void advanceReg ( const CptDescription cd  ) 

Move to the next regid.

References advanceIdx(), and CptDescription::nregs.

Referenced by checkRead().

void advanceTyp ( void   ) 

Advance to the next type.

Referenced by advanceIdx().

unsigned checkRead ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn decodeFn,
void *  dst,
const RIM_rqstInfo info 
)

Generic function checking the parameters to the read function.

Parameters:
param Pass through of the parameter injected into RIM_read
addr Node address
regId ID of the register to read (in LAT space)
decodeFn Pointer to function to use to decode the read response - should be the correct one for this type
dst Pointer to location in RIM structure to place the results
info Type and index information

References advanceReg(), _RIM_addr::cpt, CptDescription::rd, RegDescription::regId, SET_FIRST_ERROR, _RIM_rqstInfo::type, _RIM_rqstInfo::uid, and CptDescription::width.

Referenced by LATC_readAEM(), LATC_readAFE(), LATC_readARC(), LATC_readCCC(), LATC_readCFE(), LATC_readCRC(), LATC_readGEM(), LATC_readROI(), LATC_readSCH(), LATC_readSPT(), LATC_readTAM(), LATC_readTCC(), LATC_readTDC(), LATC_readTEM(), LATC_readTFE(), LATC_readTIC(), LATC_readTIE(), LATC_readTRC(), and LATC_readWIN().

void LATC_decodeAEM ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeAFE ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeARC ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeCCC ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeCFE ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeCRC ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeGEM ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeROI ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeSCH ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeSPT ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeTAM ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeTCC ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeTDC ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

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
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeTEM ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeTFE ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeTIC ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeTIE ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeTRC ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_decodeWIN ( unsigned short *  pkt,
void *  ptr,
const RIM_rqstInfo info 
)

Decode the result item.

Parameters:
pkt Pointer to a result item payload
ptr Pointer to memory location to put decoded value
info Pointer to a structure used for request information

References SET_FIRST_ERROR.

Referenced by LATC_newDecode().

void LATC_deleteDecode ( RIM_decodeFn **  decode  ) 

Free the memory previously allocated using LATC_newDecode.

Parameters:
decode Pointer to an allocated array of function pointers

void LATC_deleteLoad ( RIM_loadFn **  load  ) 

Free the memory previously allocated using LATC_newLoad.

Parameters:
load Pointer to an allocated array of function pointers

void LATC_deleteRead ( RIM_readFn **  read  ) 

Free the memory previously allocated using LATC_newRead.

Parameters:
read Pointer to an allocated array of function pointers

unsigned LATC_loadAEM ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadAFE ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadARC ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadCCC ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadCFE ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadCRC ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadGEM ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadROI ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadSCH ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to a command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadSPT ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

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

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadTAM ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to a command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadTCC ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadTDC ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

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

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
value Ptr to value to load into the register
regId Ignored

Referenced by LATC_newLoad().

unsigned LATC_loadTEM ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadTFE ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

Referenced by LATC_newLoad().

unsigned LATC_loadTIC ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadTIE ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadTRC ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to the command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

unsigned LATC_loadWIN ( void *  param,
const RIM_addr addr,
unsigned  regId,
const void *  value 
)

Load the register regId of the named component with value.

Parameters:
param Pointer to a command-response structure
addr Pointer to an address structure
regId Register ID of the target register
value Ptr to value to load into the register

References SET_FIRST_ERROR.

Referenced by LATC_newLoad().

RIM_decodeFn ** LATC_newDecode ( void   ) 

Build an array of function pointers associating RIM_type to a function that decodes the payloads.

Returns:
Pointer to an allocated array of pDecode function pointers

References LATC_decodeAEM(), LATC_decodeAFE(), LATC_decodeARC(), LATC_decodeCCC(), LATC_decodeCFE(), LATC_decodeCRC(), LATC_decodeGEM(), LATC_decodeROI(), LATC_decodeSCH(), LATC_decodeSPT(), LATC_decodeTAM(), LATC_decodeTCC(), LATC_decodeTDC(), LATC_decodeTEM(), LATC_decodeTFE(), LATC_decodeTIC(), LATC_decodeTIE(), LATC_decodeTRC(), and LATC_decodeWIN().

Referenced by t_latp().

RIM_loadFn ** LATC_newLoad ( void   ) 

Build an array of function pointers associating RIM_type to a function that loads the registers of that type.

Returns:
Pointer to an allocated array of RIM_loadFn function pointers

References LATC_loadAEM(), LATC_loadAFE(), LATC_loadARC(), LATC_loadCCC(), LATC_loadCFE(), LATC_loadCRC(), LATC_loadGEM(), LATC_loadROI(), LATC_loadSCH(), LATC_loadSPT(), LATC_loadTAM(), LATC_loadTCC(), LATC_loadTDC(), LATC_loadTEM(), LATC_loadTFE(), LATC_loadTIC(), LATC_loadTIE(), LATC_loadTRC(), and LATC_loadWIN().

Referenced by t_latp().

RIM_readFn ** LATC_newRead ( void   ) 

Build an array of function pointers associating RIM_tye to a function that reads the registers of that type.

Returns:
Pointer to an allocated array of pRead function pointers

References LATC_readAEM(), LATC_readAFE(), LATC_readARC(), LATC_readCCC(), LATC_readCFE(), LATC_readCRC(), LATC_readGEM(), LATC_readROI(), LATC_readSCH(), LATC_readSPT(), LATC_readTAM(), LATC_readTCC(), LATC_readTDC(), LATC_readTEM(), LATC_readTFE(), LATC_readTIC(), LATC_readTIE(), LATC_readTRC(), and LATC_readWIN().

Referenced by t_latp().

unsigned LATC_readAEM ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a command-response structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readAFE ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readARC ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a command-response structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readCCC ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readCFE ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readCRC ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readGEM ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Pointer to location to place the decoded response
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readROI ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a command-response structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readSCH ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.
dfn Pointer to the function to use to decode the response

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readSPT ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

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

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readTAM ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a command-response structure
addr Pointer to an address structure
regId Register ID of the target register
info Pointer to a structure used to record errors.
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readTCC ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readTDC ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

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

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Ignored
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readTEM ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readTFE ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readTIC ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readTIE ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a command-response structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readTRC ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register
info Pointer to a structure used to record errors.

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned LATC_readWIN ( void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_rqstInfo info 
)

Read the register regId of the named component.

Parameters:
param Pointer to a decode structure
addr Pointer to an address structure
regId Register ID of the target register
info Pointer to a structure used to record errors.
dfn Pointer to the function to use to decode the response
dst Ptr to location to place the value from this register

References checkRead(), and SET_FIRST_ERROR.

Referenced by LATC_newRead().

unsigned t_latp ( void *  param  ) 

Test the RIM latp functions.

Parameters:
param Pointer to the test control structure, if any
Returns:
Line number of the first error, or 0 if the test is successful

References LATC_newDecode(), LATC_newLoad(), LATC_newRead(), newRIM(), newRIMmap(), and SET_FIRST_ERROR.


Generated on Wed Nov 21 19:29:14 2012 by  doxygen 1.5.8