GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > RIM / V1-0-0

Constituent: trim     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

t_latp.c File Reference

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

#include "RIM/RIM.h"
#include "ctors_p.h"
#include "RIM_descriptions.ic"
#include "RIM_number.ic"
#include "RIM_p.h"
#include "RIM_AG_init_p.h"
#include "RIM_AG_types_p.h"
#include <stdlib.h>

Include dependency graph for t_latp.c:


Defines

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

Functions

void advanceReg (const CptDescription *cd)
 Move 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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *info)
unsigned LATC_loadTDC (void *param, const RIM_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 (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_errorInfo *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_errorInfo *info)
void LATC_decodeGEM (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeWIN (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeTAM (unsigned short *pkt, void *ptr)
 Decode the result item.
void LATC_decodeSCH (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.
int 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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *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_errorInfo *info)
 Does nothing, since one doesn't read the SPT values directly.

Variables

static unsigned latp_error = 0
 Store the line number of the first error.
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

Tests the functions that will interact with the LAT.

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

Function Documentation

unsigned checkRead void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn decodeFn,
void *  dst,
const RIM_errorInfo 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

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_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

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

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

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

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

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

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

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

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

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

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

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

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

unsigned LATC_loadTDC void *  param,
const RIM_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:
param Pointer to the command-response structure
addr Pointer to an address structure
value Ptr to value to load into the register
regId Ignored

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

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

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

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

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

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

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

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

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

unsigned LATC_readAEM void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readAFE void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readARC void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readCCC void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readCFE void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readCRC void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readGEM void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readROI void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readSCH void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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

unsigned LATC_readSPT void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readTAM void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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

unsigned LATC_readTCC void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readTDC void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readTEM void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readTFE void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readTIC void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readTIE void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readTRC void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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.

unsigned LATC_readWIN void *  param,
const RIM_addr addr,
unsigned  regId,
RIM_decodeFn  dfn,
void *  dst,
const RIM_errorInfo 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

int 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.


Generated on Fri Jun 15 02:07:20 2007 by  doxygen 1.4.4