automotive-dlt
|
#include <ctype.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <sys/uio.h>
#include "dlt_client.h"
#include "dlt_protocol.h"
#include "dlt_user.h"
Go to the source code of this file.
Data Structures | |
struct | DltTestclientData |
Macros | |
#define | DLT_TESTCLIENT_TEXTBUFSIZE 10024 /* Size of buffer for text output */ |
#define | DLT_TESTCLIENT_ECU_ID "ECU1" |
#define | DLT_TESTCLIENT_NUM_TESTS 9 |
Functions | |
int | dlt_testclient_message_callback (DltMessage *message, void *data) |
void | usage () |
int | main (int argc, char *argv[]) |
Variables | |
static int | g_testsFailed = 0 |
Definition in file dlt-test-client.c.
#define DLT_TESTCLIENT_ECU_ID "ECU1" |
Definition at line 83 of file dlt-test-client.c.
Referenced by main().
#define DLT_TESTCLIENT_NUM_TESTS 9 |
Definition at line 85 of file dlt-test-client.c.
Referenced by main().
#define DLT_TESTCLIENT_TEXTBUFSIZE 10024 /* Size of buffer for text output */ |
Definition at line 82 of file dlt-test-client.c.
Referenced by dlt_testclient_message_callback().
int dlt_testclient_message_callback | ( | DltMessage * | message, |
void * | data | ||
) |
10000/(dlt_uptime()-dltdata->time_elapsed)
Definition at line 388 of file dlt-test-client.c.
References DltTestclientData::aflag, sDltMessage::databuffer, sDltMessage::datasize, DLT_ENDIAN_GET_16, DLT_ENDIAN_GET_32, DLT_GET_MSIN_MSTP, DLT_GET_MSIN_MTIN, DLT_IS_HTYP_UEH, DLT_IS_HTYP_WEID, DLT_IS_MSIN_VERB, DLT_LOG_DEBUG, DLT_LOG_ERROR, DLT_LOG_FATAL, DLT_LOG_INFO, DLT_LOG_VERBOSE, DLT_LOG_WARN, dlt_message_filter_check(), dlt_message_header(), dlt_message_payload(), dlt_message_print_header(), dlt_message_print_hex(), dlt_message_print_mixed_plain(), DLT_MSG_IS_NONVERBOSE, DLT_MSG_READ_STRING, DLT_MSG_READ_VALUE, DLT_NW_TRACE_CAN, DLT_NW_TRACE_FLEXRAY, DLT_NW_TRACE_IPC, DLT_NW_TRACE_MOST, DLT_OUTPUT_ASCII, DLT_RETURN_TRUE, DLT_SCOD_ASCII, DLT_SCOD_UTF8, dlt_set_storageheader(), DLT_TESTCLIENT_TEXTBUFSIZE, DLT_TYLE_128BIT, DLT_TYLE_16BIT, DLT_TYLE_32BIT, DLT_TYLE_64BIT, DLT_TYLE_8BIT, DLT_TYPE_INFO_BOOL, DLT_TYPE_INFO_FLOA, DLT_TYPE_INFO_RAWD, DLT_TYPE_INFO_SCOD, DLT_TYPE_INFO_SINT, DLT_TYPE_INFO_STRG, DLT_TYPE_INFO_TYLE, DLT_TYPE_INFO_UINT, DLT_TYPE_LOG, DLT_TYPE_NW_TRACE, DLT_USER_BUF_MAX_SIZE, DltTestclientData::ecuid, sDltMessage::extendedheader, DltTestclientData::filter, DltTestclientData::fvalue, g_testsFailed, sDltMessage::headerbuffer, sDltMessage::headerextra, sDltMessage::headersize, DltTestclientData::mflag, DltTestclientData::ohandle, DltTestclientData::ovalue, DltTestclientData::running_test, DltTestclientData::sflag, DltTestclientData::sock, sDltMessage::standardheader, sDltMessage::storageheader, DltTestclientData::test_counter_function, DltTestclientData::test_counter_macro, DltTestclientData::tests_failed, DltTestclientData::tests_passed, DltTestclientData::vflag, and DltTestclientData::xflag.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main function of tool.
Definition at line 152 of file dlt-test-client.c.
References DltTestclientData::aflag, DltTestclientData::bvalue, dlt_client_cleanup(), dlt_client_connect(), dlt_client_init(), dlt_client_main_loop(), dlt_client_register_message_callback(), dlt_client_set_serial_device(), dlt_client_set_server_ip(), dlt_client_setbaudrate(), dlt_file_free(), dlt_file_init(), dlt_file_set_filter(), dlt_filter_free(), dlt_filter_init(), dlt_filter_load(), DLT_RETURN_ERROR, DLT_RETURN_OK, dlt_set_id(), DLT_TESTCLIENT_ECU_ID, dlt_testclient_message_callback(), DLT_TESTCLIENT_NUM_TESTS, DltTestclientData::ecuid, DltTestclientData::evalue, DltTestclientData::file, DltTestclientData::filter, DltTestclientData::fvalue, g_testsFailed, DltTestclientData::mflag, DltClient::mode, DltTestclientData::ohandle, DltTestclientData::ovalue, DltTestclientData::running_test, DltClient::serialDevice, DltClient::servIP, DltTestclientData::sflag, DltClient::sock, DltTestclientData::sock, DltTestclientData::test_counter_function, DltTestclientData::test_counter_macro, DltTestclientData::tests_failed, DltTestclientData::tests_passed, usage(), DltTestclientData::vflag, DltTestclientData::xflag, and DltTestclientData::yflag.
void usage | ( | void | ) |
Print usage information of tool.
Definition at line 126 of file dlt-test-client.c.
References dlt_get_version().
Referenced by main().
|
static |
Definition at line 87 of file dlt-test-client.c.
Referenced by dlt_testclient_message_callback(), and main().