GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CTDB / V5-5-5 > ctdb_rt_test_sumt / mv2304
#include <vxWorks.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <CTDB/ctdb_rt_test_sumt.h>
#include <CTDB/CTDB_rt.h>
#include <CTDB/SUMT_rt.h>
#include <CTDB/CTDB_config.h>
#include <CTDB/CTDB_tlmdefs.h>
#include <CCSDS/CCSDS_pkt.h>
#include <MSG/MSG_pubdefs.h>
#include <PBS/WCT.h>
#include <ctdb_rt_test_private.h>
Defines | |
#define | RT_APID_HKP 0x20e |
#define | RT_SIZE_HKP 102 |
#define | SUMT_RT_TASK_NAME "uRT" |
#define | SUMT_RT_TASK_STACK 0x2000 |
#define | SUMT_RT_TASK_PRI 60 |
Functions | |
static unsigned int | rt_pkt_hkp (void *buf, void *arg) |
static unsigned int | rt_null_hkp (void *buf, void *arg) |
unsigned int | rt_init_dev (void *rt, void *addr) |
Implementation specific device initialization. | |
Variables | |
rt_test_config | rtTestConfig |
static SUMT_RT_Bus_Config | busConfig |
static const SUMT_RT_Pkt_Config | pktConfig |
static const SUMT_RT_Callback_Config | cbConfig |
static const SUMT_RT_Task_Config | taskConfig |
#define RT_APID_HKP 0x20e |
A fake CCSDS application ID to use for sent HKP telemetry packets.
Referenced by rt_pkt_hkp().
#define RT_SIZE_HKP 102 |
The size in bytes of the test HKP telemetry packets.
Referenced by rt_pkt_hkp().
#define SUMT_RT_TASK_NAME "uRT" |
The name of the remote terminal service task.
#define SUMT_RT_TASK_PRI 60 |
The priority of the remote terminal service task.
#define SUMT_RT_TASK_STACK 0x2000 |
The size in bytes of the remote terminal service task stack.
unsigned int rt_init_dev | ( | void * | rt, | |
void * | addr | |||
) |
Implementation specific device initialization.
Initializes the Summit RT driver.
rt | The driver handle. | |
addr | The RT address. |
References CTDB_rtHkpSet(), _SUMT_RT_Bus_Config::rt_addr, rt_pkt_hkp(), and SUMT_rtInit().
Referenced by rt_init().
static unsigned int rt_null_hkp | ( | void * | buf, | |
void * | arg | |||
) | [static] |
Driver callback for HKP telemetry packet generation.
buf | The buffer for holding the HKP packet. | |
arg | User defined argument. |
static unsigned int rt_pkt_hkp | ( | void * | buf, | |
void * | arg | |||
) | [static] |
Driver callback for HKP telemetry packet generation.
buf | The buffer for holding the HKP packet. | |
arg | User defined argument. |
References _CTDB_RT_Diag::cmd_rx_byte_count, _CTDB_LCTDBRTDIAG_Tlm::cmd_rx_byte_count, _CTDB_RT_Diag::cmd_rx_pkt_count, _CTDB_LCTDBRTDIAG_Tlm::cmd_rx_pkt_count, _CTDB_RT_Diag::cmd_tx_byte_count, _CTDB_LCTDBRTDIAG_Tlm::cmd_tx_byte_count, _CTDB_RT_Diag::cmd_tx_pkt_count, _CTDB_LCTDBRTDIAG_Tlm::cmd_tx_pkt_count, CTDB_rtDiagGet(), _CTDB_RT_Diag::error_count, _CTDB_LCTDBRTDIAG_Tlm::error_count, _CTDB_RT_Diag::hkp_byte_count, _CTDB_LCTDBRTDIAG_Tlm::hkp_byte_count, _CTDB_RT_Diag::hkp_pkt_count, _CTDB_LCTDBRTDIAG_Tlm::hkp_pkt_count, _rt_test_config::hkpSeq, _CTDB_RT_Diag::intr_count, _CTDB_LCTDBRTDIAG_Tlm::intr_count, _CTDB_LCTDBRTDIAG_Tlm::pad_16, _rt_test_config::rt, RT_APID_HKP, RT_SIZE_HKP, _CTDB_RT_Diag::telem_byte_count, _CTDB_LCTDBRTDIAG_Tlm::telem_byte_count, _CTDB_RT_Diag::telem_pkt_count, and _CTDB_LCTDBRTDIAG_Tlm::telem_pkt_count.
Referenced by rt_init_dev().
busConfig [static] |
The RT driver 1553 bus configuration.
cbConfig [static] |
Initial value:
{ rt_null_hkp, NULL }
pktConfig [static] |
Initial value:
{ 32, CTDB_CONFIG_PKT_SIZE_CMD_RX, 8, 4, CTDB_CONFIG_PKT_SIZE_CMD_TX, 32, 128, CTDB_CONFIG_PKT_SIZE_TELEM, CTDB_CONFIG_PKT_SIZE_HKP }
The application configuration
The global instance of the test application descriptor.
taskConfig [static] |
Initial value:
{ { SUMT_RT_TASK_NAME, SUMT_RT_TASK_PRI, 0, NULL, SUMT_RT_TASK_STACK }, MSG_LVL_INFORMATION, }