7 Teleservice Application Framework
User Manual
195/374
Example
// Global module
T_DBUS_Util mt_DBUS_Util;
sint32 s32_Retval;
s32_Retval = ylogd_create_log_job (&mt_DBUS_Util, "TC3_Logger", 1, 1024*1024, 1, "Test log
job", 500);
if (s32_Retval == C_NO_ERR)
{
// Go on
}
7.3.6.2.2
ylogd_add_log_variable
Function Description
sint32
ylogd_add_log_variable (const T_DBUS_Util *const
opt_DBusInstance,
const charn *
const opcn_LogJobName ,
const charn * const opcn_DatapoolName,
const charn * const
opcn_ListName,
const charn * const opcn_VariableName, const uint32 ou32_Hysteresis)
The function adds a variable to be logged as part of a data logging record of the data logger job
opcn_LogJobName. The value will only be written to the log file in case it differs more than +/- ou32_Hysteresis
from its previous record.
Information Flow
Input Information
Parameter
Range
Description
opt_DBusInstance
T_DBUS_Util
holds all D-Bus information
opcn_LogJobName
maximum
MAX_DL_NAME_LENGTH
pointer to log job name
opcn_DatapoolName
maximum
MAX_DP_NAME_LENGTH
pointer to the data pool name
opcn_ListName
maximum
MAX_DP_NAME_LENGTH
pointer to the list name
opcn_VariableName
maximum
MAX_DP_NAME_LENGTH
pointer to the variable name for logging
ou32_Hysteresis
uint32
includes the logging hysteresis
Structure T_DBUS_Util
typedef struct
{
DBusConnection* pt_dbus_conn;
// D-BUS connection instance
charn acn_myNameString[128];
// Name of the application, Don't use any
special
// characters, white spaces or new lines!
charn acn_myVersion[128];
// Additional value (for HELLO) signal (opt.)
charn acn_myStatus[128];
// Additional value (for HELLO) signal (opt.)
Summary of Contents for TC1
Page 1: ...TC1 User Manual Version of this document V1 00r0 ...
Page 25: ...5 Hardware User Manual 25 374 5 2 2 Block Diagram Variant TC1 WIFI ...
Page 34: ...5 Hardware User Manual 34 374 5 6 Housing Connector Top view and side view Bottom View ...
Page 125: ...7 Teleservice Application Framework User Manual 125 374 TAF overview ...
Page 190: ...7 Teleservice Application Framework User Manual 190 374 How the logger mechanism works ...