GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CTDB / V5-5-5 > ctdb_unit_test / mv2304
#include <stdio.h>
#include <stdlib.h>
#include <PBS/RW.h>
#include <PBS/MBA.h>
#include <ctdb_unit_test_private.h>
Functions | |
void | co1553_pkt_free (void *pkt, void *arg) |
void | co1553_mem_copy (void *dest, void *src, unsigned int numWord) |
Variables | |
unsigned short | co1553_cmd_rx_msg_0 [] |
unsigned short | co1553_cmd_rx_pkt_0 [] |
unsigned short | co1553_cmd_rx_msg_1 [] |
unsigned short | co1553_cmd_rx_pkt_1 [] |
unsigned short | co1553_cmd_rx_msg_2 [] |
unsigned short | co1553_cmd_rx_pkt_2 [] |
unsigned short | co1553_cmd_rx_msg_3 [] |
unsigned short | co1553_cmd_rx_msg_4 [] |
unsigned int | co1553_cmd_rx_pkt_0_size = sizeof(co1553_cmd_rx_pkt_0) |
unsigned int | co1553_cmd_rx_pkt_1_size = sizeof(co1553_cmd_rx_pkt_1) |
unsigned int | co1553_cmd_rx_pkt_2_size = sizeof(co1553_cmd_rx_pkt_2) |
unsigned short | co1553_cmd_tx_pkt_0 [] |
unsigned short | co1553_cmd_tx_msg_0 [] |
unsigned short | co1553_cmd_tx_pkt_1 [] |
unsigned short | co1553_cmd_tx_msg_1 [] |
unsigned short | co1553_cmd_tx_pkt_2 [] |
unsigned short | co1553_cmd_tx_msg_2 [] |
unsigned int | co1553_cmd_tx_pkt_0_size = sizeof(co1553_cmd_tx_pkt_0) |
unsigned int | co1553_cmd_tx_pkt_1_size = sizeof(co1553_cmd_tx_pkt_1) |
unsigned int | co1553_cmd_tx_pkt_2_size = sizeof(co1553_cmd_tx_pkt_2) |
unsigned short | co1553_hkp_pkt_0 [] |
unsigned int | co1553_hkp_pkt_0_size = sizeof(co1553_hkp_pkt_0) |
unsigned short | co1553_hkp_pkt_1 [] |
unsigned int | co1553_hkp_pkt_1_size = sizeof(co1553_hkp_pkt_1) |
unsigned short | co1553_telem_pkt_0 [] |
unsigned short | co1553_telem_pkt_1 [] |
unsigned short | co1553_telem_pkt_2 [] |
unsigned short | co1553_telem_msg_0 [] |
unsigned short | co1553_telem_msg_1 [] |
unsigned short | co1553_telem_msg_2 [] |
unsigned short | co1553_telem_msg_3 [] |
unsigned int | co1553_telem_pkt_0_size = sizeof(co1553_telem_pkt_0) |
unsigned int | co1553_telem_pkt_1_size = sizeof(co1553_telem_pkt_1) |
unsigned int | co1553_telem_pkt_2_size = sizeof(co1553_telem_pkt_2) |
const char * | sepStr = "---------------------------------------------------------------\n" |
const char * | sepStr2 = "***************************************************************\n" |
RW_ctl | diagLock |
void co1553_mem_copy | ( | void * | dest, | |
void * | src, | |||
unsigned int | numWord | |||
) |
Memory copy function used for the unit tests.
dest | The destination address. | |
src | The source address. | |
numWord | The number of 16-bit words to copy. |
Referenced by co1553_bc_test_cmd_rx(), co1553_bc_test_cmd_tx(), co1553_bc_test_telem(), co1553_rt_test_cmd_rx(), co1553_rt_test_cmd_tx(), co1553_rt_test_err(), and co1553_rt_test_telem().
void co1553_pkt_free | ( | void * | pkt, | |
void * | arg | |||
) |
Memory release function used for the unit tests.
pkt | A pointer to the packet buffer to free. | |
arg | A user defined argument. |
References CO1553_ARG_VALUE_0.
Referenced by co1553_bc_test_cmd_rx(), co1553_bc_test_param(), co1553_rt_test_cmd_tx(), co1553_rt_test_param(), and co1553_rt_test_telem().
unsigned short co1553_cmd_rx_msg_0[] |
Initial value:
{ 0x1e40, 0xc000, 0x0021, 0x0000, 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x000f, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, }
APID = 0x640, FC=0, SF=NONE, SC=0, LEN=32
Referenced by co1553_bc_test_cmd_rx(), and co1553_rt_test_cmd_rx().
unsigned short co1553_cmd_rx_msg_1[] |
Initial value:
{ 0x1e41, 0x400a, 0x0037, 0x0003, 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002a, 0x0000, }
APID = 0x641, FC=3, SF=FIRST, SC=10, LEN=54
Referenced by co1553_bc_test_cmd_rx(), and co1553_rt_test_cmd_rx().
unsigned short co1553_cmd_rx_msg_2[] |
Initial value:
{ 0x1e42, 0xc001, 0x0003, 0x0002, 0x002c, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, }
APID = 0x642, FC=2, SF=NONE, SC=1, LEN=2
Referenced by co1553_bc_test_cmd_rx(), and co1553_rt_test_cmd_rx().
unsigned short co1553_cmd_rx_msg_3[] |
Initial value:
{ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, }
Referenced by co1553_rt_test_err().
unsigned short co1553_cmd_rx_msg_4[] |
Initial value:
{ 0x1e42, 0xc001, 0x0065, 0x0002, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, }
APID = 0x642, FC=2, SF=NONE, SC=1, LEN=100
Referenced by co1553_rt_test_err().
unsigned short co1553_cmd_rx_pkt_0[] |
Initial value:
{ 0x1e40, 0xc000, 0x0021, 0x0000, 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x000f, }
APID = 0x640, FC=0, SF=NONE, SC=0, LEN=32
Referenced by co1553_bc_test_cmd_rx(), and co1553_rt_test_cmd_rx().
unsigned int co1553_cmd_rx_pkt_0_size = sizeof(co1553_cmd_rx_pkt_0) |
The size in bytes of co1553_cmd_rx_pkt_0.
Referenced by co1553_bc_test_cmd_rx().
unsigned short co1553_cmd_rx_pkt_1[] |
Initial value:
{ 0x1e41, 0x400a, 0x0037, 0x0003, 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002a }
APID = 0x641, FC=3, SF=FIRST, SC=10, LEN=54
Referenced by co1553_bc_test_cmd_rx(), and co1553_rt_test_cmd_rx().
unsigned int co1553_cmd_rx_pkt_1_size = sizeof(co1553_cmd_rx_pkt_1) |
The size in bytes of co1553_cmd_rx_pkt_1.
Referenced by co1553_bc_test_cmd_rx().
unsigned short co1553_cmd_rx_pkt_2[] |
Initial value:
{ 0x1e42, 0xc001, 0x0003, 0x0002, 0x002c, }
APID = 0x642, FC=2, SF=NONE, SC=1, LEN=2
Referenced by co1553_bc_test_cmd_rx(), and co1553_rt_test_cmd_rx().
unsigned int co1553_cmd_rx_pkt_2_size = sizeof(co1553_cmd_rx_pkt_2) |
The size in bytes of co1553_cmd_rx_pkt_2.
Referenced by co1553_bc_test_cmd_rx().
unsigned short co1553_cmd_tx_msg_0[] |
Initial value:
{ 0x0001, 0x1e40, 0xc000, 0x0021, 0x0000, 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x000f, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, }
APID = 0x600, FC=0, SF=NONE, SC=0, LEN=32
Referenced by co1553_bc_test_cmd_tx(), and co1553_rt_test_cmd_tx().
unsigned short co1553_cmd_tx_msg_1[] |
Initial value:
{ 0x0002, 0x1e41, 0x400a, 0x0037, 0x0003, 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002a, }
APID = 0x601, FC=3, SF=FIRST, SC=10, LEN=54
Referenced by co1553_bc_test_cmd_tx(), and co1553_rt_test_cmd_tx().
unsigned short co1553_cmd_tx_msg_2[] |
Initial value:
{ 0x0003, 0x1e42, 0xc001, 0x0003, 0x0002, 0x002b, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, }
APID = 0x602, FC=2, SF=NONE, SC=1, LEN=2
Referenced by co1553_bc_test_cmd_tx(), and co1553_rt_test_cmd_tx().
unsigned short co1553_cmd_tx_pkt_0[] |
Initial value:
{ 0x1e40, 0xc000, 0x0021, 0x0000, 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x000f, }
APID = 0x600, FC=0, SF=NONE, SC=0, LEN=32
Referenced by co1553_bc_test_cmd_tx(), and co1553_rt_test_cmd_tx().
unsigned int co1553_cmd_tx_pkt_0_size = sizeof(co1553_cmd_tx_pkt_0) |
The size in bytes of co1553_cmd_tx_pkt_0.
Referenced by co1553_rt_test_cmd_tx().
unsigned short co1553_cmd_tx_pkt_1[] |
Initial value:
{ 0x1e41, 0x400a, 0x0037, 0x0003, 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002a, }
APID = 0x601, FC=3, SF=FIRST, SC=10, LEN=54
Referenced by co1553_bc_test_cmd_tx(), and co1553_rt_test_cmd_tx().
unsigned int co1553_cmd_tx_pkt_1_size = sizeof(co1553_cmd_tx_pkt_1) |
The size in bytes of co1553_cmd_tx_pkt_1.
Referenced by co1553_rt_test_cmd_tx().
unsigned short co1553_cmd_tx_pkt_2[] |
Initial value:
{ 0x1e42, 0xc001, 0x0003, 0x0002, 0x002b, }
APID = 0x602, FC=2, SF=NONE, SC=1, LEN=2
Referenced by co1553_bc_test_cmd_tx(), and co1553_rt_test_cmd_tx().
unsigned int co1553_cmd_tx_pkt_2_size = sizeof(co1553_cmd_tx_pkt_2) |
The size in bytes of co1553_cmd_tx_pkt_2.
Referenced by co1553_rt_test_cmd_tx().
unsigned short co1553_hkp_pkt_0[] |
Initial value:
{ 0x0a10, 0xc001, 0x006d, 0x0000, 0x0064, 0x0000, 0x0000, 0x002c, 0x002d, 0x002c, 0x002d, 0x002e, 0x002f, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039, 0x003a, 0x003b, 0x003c, 0x003d, 0x003e, 0x003f, 0x0040, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047, 0x0048, 0x0049, 0x004a, 0x004b, 0x004c, 0x004d, 0x004e, 0x004f, 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057, 0x0058, 0x0059, 0x005a, 0x005b, 0x005c, }
APID = 0x210, SF=NONE, SC=1, LEN=102, SEC=100, SSEC=0
Referenced by co1553_bc_test_telem(), and co1553_hkp_0().
unsigned int co1553_hkp_pkt_0_size = sizeof(co1553_hkp_pkt_0) |
The size in bytes of co1553_hkp_pkt_0.
Referenced by co1553_hkp_0().
unsigned short co1553_hkp_pkt_1[] |
Initial value:
{ 0x0a10, 0xc001, 0x006d, 0x0000, 0x0064, 0x0000, 0x0000, 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x000f, 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002a, 0x002b, 0x002c, 0x002d, 0x002e, 0x002f, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, }
APID = 0x210, SF=NONE, SC=1, LEN=102, SEC=100, SSEC=0
Referenced by co1553_hkp_1().
unsigned int co1553_hkp_pkt_1_size = sizeof(co1553_hkp_pkt_1) |
The size in bytes of co1553_hkp_pkt_1.
Referenced by co1553_hkp_1().
unsigned short co1553_telem_msg_0[] |
Sample 1553 telemetry message block. Contains 2 CCSDS telemetry packets.
Referenced by co1553_bc_test_telem(), and co1553_rt_test_telem().
unsigned short co1553_telem_msg_1[] |
Sample 1553 telemetry message block. Contains 5 CCSDS telemetry packets.
Referenced by co1553_bc_test_telem(), and co1553_rt_test_telem().
unsigned short co1553_telem_msg_2[] |
Sample 1553 telemetry message block. Contains 2 CCSDS telemetry packets.
Referenced by co1553_rt_test_telem().
unsigned short co1553_telem_msg_3[] |
Sample 1553 telemetry message block. Contains 2 CCSDS telemetry packets.
Referenced by co1553_rt_test_telem().
unsigned short co1553_telem_pkt_0[] |
Sample 1553 telemetry packet.
APID = 0x260, SF=NONE, SC=5, LEN=800, SEC=400, SSEC=1000
Referenced by co1553_bc_test_telem(), and co1553_rt_test_telem().
unsigned int co1553_telem_pkt_0_size = sizeof(co1553_telem_pkt_0) |
The size in bytes of co1553_telem_pkt_0.
Referenced by co1553_rt_test_telem().
unsigned short co1553_telem_pkt_1[] |
Initial value:
{ 0x0a61, 0x0014, 0x001b, 0x0000, 0x01f4, 0x0000, 0x2710, 0x01ed, 0x01ee, 0x01ef, 0x0120, 0x0121, 0x0122, 0x0123, 0x0124, 0x0125, 0x0126, }
APID = 0x261, SF=MID, SC=20, LEN=20, SEC=500, SSEC=10000
Referenced by co1553_bc_test_telem(), and co1553_rt_test_telem().
unsigned int co1553_telem_pkt_1_size = sizeof(co1553_telem_pkt_1) |
The size in bytes of co1553_telem_pkt_1.
Referenced by co1553_rt_test_telem().
unsigned short co1553_telem_pkt_2[] |
Initial value:
{ 0x0a65, 0x8015, 0x0013, 0x0000, 0x01f4, 0x0001, 0x8684, 0x0127, 0x0128, 0x0129, 0x012a, 0x012b, 0x012c, }
APID = 0x265, SF=LAST, SC=21, LEN=12, SEC=500, SSEC=100004
Referenced by co1553_bc_test_telem(), and co1553_rt_test_telem().
unsigned int co1553_telem_pkt_2_size = sizeof(co1553_telem_pkt_2) |
The size in bytes of co1553_telem_pkt_2.
Referenced by co1553_rt_test_telem().
A RW lock for protecting diagnostics structure.
Referenced by co1553_rt_test_cmd_rx(), co1553_rt_test_cmd_tx(), co1553_rt_test_err(), co1553_rt_test_telem(), and ctdb_unit_test().
sepStr = "---------------------------------------------------------------\n" |
A display separator line.
Referenced by co1553_bc_sim_test_param(), co1553_bc_test_cmd_rx(), co1553_bc_test_cmd_tx(), co1553_bc_test_param(), co1553_bc_test_telem(), co1553_diag(), co1553_rt_sim_test_param(), co1553_rt_test_cmd_rx(), co1553_rt_test_cmd_tx(), co1553_rt_test_err(), co1553_rt_test_param(), co1553_rt_test_telem(), and ctdb_unit_test().
sepStr2 = "***************************************************************\n" |
A display separator line.
Referenced by co1553_bc_test_cmd_rx(), co1553_bc_test_cmd_tx(), co1553_bc_test_telem(), co1553_rt_test_cmd_rx(), co1553_rt_test_cmd_tx(), co1553_rt_test_err(), and co1553_rt_test_telem().