GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCBT / V1-6-2 > lcbt / rad750
#include <LCBT/LCBT.h>
#include <PBS/MBA.h>
#include <PBS/WCT.h>
#include <PBS/TMR.h>
#include <PBS/QI.h>
#include <PBS/TASK.h>
#include <PBS/FPA.h>
#include <PBS/FORK.h>
#include <PBS/CACHE.h>
#include <CCSDS/CCSDS_pkt.h>
#include <RND.h>
#include <LCBT_printf.h>
#include <string.h>
Functions | |
int | LCBT_eventTest (int num, int maxLen, int latpAddr, int randomLen, int ccsds, TDATA_DTEST testType, unsigned int testParm) |
Test to send/recv/compare event data thru loopback on LCB board. | |
int | LCBT_eventTest2 (int num, int maxLen, int latpAddr, int randomLen, int ccsds, TDATA_DTEST testType, unsigned int testParm) |
2 concurrent task test to send/recv/compare event data thru loopback on LCB board | |
int | LCBT_eventTest3 (int num, int maxLen, int latpAddr, int randomLen, int ccsds, TDATA_DTEST testType, unsigned int testParm) |
3 concurrent task test to send/recv/compare event data thru loopback on LCB board | |
int | LCBT_eventTest5 (int num, int maxLen, int latpAddr, int randomLen, int ccsds, TDATA_DTEST testType, unsigned int testParm) |
5 concurrent task test to send/recv/compare event data thru loopback on LCB board | |
int | LCBT_comboTest (int num, int maxLen, int latpAddr, int randomLen, int ccsds, TDATA_DTEST testType, unsigned int testParm) |
2 concurrent tasks running event and localCmdReg test | |
int | LCBT_eventWatermarkTest (int num, int latpAddr) |
Check for proper operation of watermarks on Event and EventData queues. | |
int | LCBT_eventRecv (int numRecv, int ccsds) |
Setup to receive and compare data from LCBT_eventSend(). | |
int | LCBT_eventSend (int numEvents, int maxEvtSize, int latpAddr, int randomLen, int ccsds, TDATA_DTEST testType, unsigned int testParm) |
Send out test event data to be received by LCBT_eventRecv(). | |
int | LCBT_eventSendDelay (int delayNanosec) |
Set delay in nanoSec between event sends, can be 0. | |
void | LCBT_eventCorrupt (unsigned int delayNanoSec, int numCorrupt, int corruptSize, unsigned int corruptVal) |
corrupt data in the circular event data | |
int | LCBT_eventInit (int echoForkPri) |
Setup module in this file to echo event data back to sender. | |
int | LCBT_eventFillTest (int num, int latpAddr, int buffSize32, int printInfo) |
Check for proper operation circular buffFUll interrupt. |
int LCBT_comboTest | ( | int | num, | |
int | maxLen, | |||
int | latpAddr, | |||
int | randomLen, | |||
int | ccsds, | |||
TDATA_DTEST | testType, | |||
unsigned int | testParm | |||
) |
2 concurrent tasks running event and localCmdReg test
num | number of events to send | |
maxLen | max event size in int32 (4 to 1020), 0 will set to maximum size for loopback which is 767 | |
latpAddr | - LATp address of board to send to, 0=self | |
randomLen | 1=packet range from 4 to maxEvtSize, 0=packets are maxEvtSize | |
ccsds | 1=put CCSDS header on data sent out as event | |
testType | Specifies the data sequence for test | |
testParm | Parm to use with testType |
References LCBT_cmdLocalTest(), LCBT_eventRecv(), LCBT_eventSend(), and TDATA_testStr().
void LCBT_eventCorrupt | ( | unsigned int | delayNanoSec, | |
int | numCorrupt, | |||
int | corruptSize32, | |||
unsigned int | corruptVal | |||
) |
corrupt data in the circular event data
delayNanoSec | delay between corruptions | |
numCorrupt | number of corruptions bfore stopping | |
corruptSize32 | size of corruption in int32 | |
corruptVal | int32 value to write when corrupting |
References RND_lc0_gen(), and RND_lc0_init().
int LCBT_eventFillTest | ( | int | num, | |
int | latpAddr, | |||
int | buffSize32, | |||
int | printInfo | |||
) |
Check for proper operation circular buffFUll interrupt.
num | Number of times to do the test | |
latpAddr | - LATp address of board to send to, 0=self | |
printInfo | print irq and other info while processing | |
buffSize32 | buffSize to send, must be multiple of 32 to match EBM, min is 128 |
References EPRINTF, LCBT_eventRecv(), LCBT_eventSend(), and PRINTF.
int LCBT_eventInit | ( | int | echoForkPri | ) |
Setup module in this file to echo event data back to sender.
echoForkPri | priority of forked task to send event data back |
Referenced by LCBT_init().
int LCBT_eventRecv | ( | int | numRecv, | |
int | ccsds | |||
) |
Setup to receive and compare data from LCBT_eventSend().
numRecv | 0=sets up and return, 1=waits for numRecv events | |
ccsds | 1=expect CCSDS header on event data received |
Referenced by LCBT_comboTest(), LCBT_eventFillTest(), LCBT_eventTest(), LCBT_eventTest2(), LCBT_eventTest3(), LCBT_eventTest5(), and LCBT_eventWatermarkTest().
int LCBT_eventSend | ( | int | numEvents, | |
int | maxEvtSize, | |||
int | latpAddr, | |||
int | randomLen, | |||
int | ccsds, | |||
TDATA_DTEST | testType, | |||
unsigned int | testParm | |||
) |
Send out test event data to be received by LCBT_eventRecv().
numEvents | number of events to send | |
maxEvtSize | max event size in int32 (4 to 1020), 0 will set to maximum size for loopback which is 767 | |
latpAddr | - LATp address of board to send to, 0=self | |
randomLen | 1=packet range from 4 to maxEvtSize, 0=packets are maxEvtSize | |
ccsds | 1=put CCSDS header on data sent out as event | |
testType | Specifies the data sequence for test | |
testParm | Parm to use with testType |
References EPRINTF, LCBT_OPTION_BUSYPRINT, LCBT_OPTION_FOREVER, LCBT_OPTION_INCTESTPARM, LCBT_OPTION_RLCL_ADDR, LCBT_OPTION_VERBOSE, PRINTF, RND_lc0_gen(), RND_lc0_init(), TDATA_create(), and TDATA_testStr().
Referenced by LCBT_comboTest(), LCBT_eventFillTest(), LCBT_eventTest(), LCBT_eventTest2(), LCBT_eventTest3(), and LCBT_eventTest5().
int LCBT_eventSendDelay | ( | int | delayNanosec | ) |
Set delay in nanoSec between event sends, can be 0.
delayNanosec | delay in nanoSec |
int LCBT_eventTest | ( | int | num, | |
int | maxLen, | |||
int | latpAddr, | |||
int | randomLen, | |||
int | ccsds, | |||
TDATA_DTEST | testType, | |||
unsigned int | testParm | |||
) |
Test to send/recv/compare event data thru loopback on LCB board.
num | number of events to send | |
maxLen | max event size in int32 (4 to 1020), 0 will set to maximum size for loopback which is 767 | |
latpAddr | - LATp address of board to send to, 0=self | |
randomLen | 1=packet range from 4 to maxEvtSize, 0=packets are maxEvtSize | |
ccsds | 1=put CCSDS header on data sent out as event | |
testType | Specifies the data sequence for test | |
testParm | Parm to use with testType |
References LCBT_eventRecv(), LCBT_eventSend(), and TDATA_testStr().
int LCBT_eventTest2 | ( | int | num, | |
int | maxLen, | |||
int | latpAddr, | |||
int | randomLen, | |||
int | ccsds, | |||
TDATA_DTEST | testType, | |||
unsigned int | testParm | |||
) |
2 concurrent task test to send/recv/compare event data thru loopback on LCB board
num | number of events to send | |
maxLen | max event size in int32 (4 to 1020), 0 will set to maximum size for loopback which is 767 | |
latpAddr | - LATp address of board to send to, 0=self | |
randomLen | 1=packet range from 4 to maxEvtSize, 0=packets are maxEvtSize | |
ccsds | 1=put CCSDS header on data sent out as event | |
testType | Specifies the data sequence for test | |
testParm | Parm to use with testType |
References LCBT_eventRecv(), LCBT_eventSend(), and TDATA_testStr().
int LCBT_eventTest3 | ( | int | num, | |
int | maxLen, | |||
int | latpAddr, | |||
int | randomLen, | |||
int | ccsds, | |||
TDATA_DTEST | testType, | |||
unsigned int | testParm | |||
) |
3 concurrent task test to send/recv/compare event data thru loopback on LCB board
num | number of events to send | |
maxLen | max event size in int32 (4 to 1020), 0 will set to maximum size for loopback which is 767 | |
latpAddr | - LATp address of board to send to, 0=self | |
randomLen | 1=packet range from 4 to maxEvtSize, 0=packets are maxEvtSize | |
ccsds | 1=put CCSDS header on data sent out as event | |
testType | Specifies the data sequence for test | |
testParm | Parm to use with testType |
References LCBT_eventRecv(), LCBT_eventSend(), and TDATA_testStr().
int LCBT_eventTest5 | ( | int | num, | |
int | maxLen, | |||
int | latpAddr, | |||
int | randomLen, | |||
int | ccsds, | |||
TDATA_DTEST | testType, | |||
unsigned int | testParm | |||
) |
5 concurrent task test to send/recv/compare event data thru loopback on LCB board
num | number of events to send | |
maxLen | max event size in int32 (4 to 1020), 0 will set to maximum size for loopback which is 767 | |
latpAddr | - LATp address of board to send to, 0=self | |
randomLen | 1=packet range from 4 to maxEvtSize, 0=packets are maxEvtSize | |
ccsds | 1=put CCSDS header on data sent out as event | |
testType | Specifies the data sequence for test | |
testParm | Parm to use with testType |
References LCBT_eventRecv(), LCBT_eventSend(), and TDATA_testStr().
int LCBT_eventWatermarkTest | ( | int | num, | |
int | latpAddr | |||
) |
Check for proper operation of watermarks on Event and EventData queues.
num | Number of times to do the test | |
latpAddr | - LATp address of board to send to, 0=self |
References LCBT_eventRecv(), and PRINTF.