automotive-dlt
dlt-test-client.c File Reference
#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"
Include dependency graph for dlt-test-client.c:

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
 

Detailed Description

Author
Alexander Wenzel alexa.nosp@m.nder.nosp@m..aw.w.nosp@m.enze.nosp@m.l@bmw.nosp@m..de

Definition in file dlt-test-client.c.

Macro Definition Documentation

#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().

Function Documentation

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().

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().

Variable Documentation

int g_testsFailed = 0
static

Definition at line 87 of file dlt-test-client.c.

Referenced by dlt_testclient_message_callback(), and main().