7 Teleservice Application Framework
User Manual
183/374
Information Flow
Input Information
Parameter
Range
Description
os32_DatapoolIndex
0 .. maximum of sint32
includes the data pool index
os32_VariableListIndex
0 .. maximum of sint32
includes the variable list index
os32_VariableIndex
0 .. maximum of sint32
includes the variable index
opv_Buffer
ou32_NumberOfBytesToWrite pointer to the value for the variable
ou32_NumberOfBytesToWrite depends on the variable size
includes the size of byte that must be written
to
Output Information
Return Value
Description
C_NO_ERR
Function executed without error, value was set successful to the variable
C_RANGE
Data pool, list or variable does not exist
Example
// Global module
sint32 s32_DataPoolIndex;
sint32 s32_ListIndex;
sint32 s32_VarIndex;
float32 f32_Value = 5;
sint32 s32_Retval;
s32_DataPoolIndex = ydatad_get_datapool_index ("MyDatapool")
s32_ListIndex = ydatad_get_list_index (s32_DataPoolIndex , "GPSDates");
s32_VarIndex = ydatad_get_variable_index (s32_DataPoolIndex, s32_ListIndex , "Longitude");
s32_Retval = ydatad_set_variable (s32_DataPoolIndex, s32_ListIndex, s32_VarIndex,
&f32_Value, sizeof(float32));
if (s32_Retval == C_NO_ERR)
{
// Go on
}
7.3.5.4.8
ydatad_get_variable
Function Description
sint32 ydatad_get_variable (const sint32
os32_DatapoolIndex,
const sint32
os32_VariableListIndex,
const sint32
os32_VariableIndex,
const void * const
opv_Buffer,
uint32
const
ou32_SizeOfBuffer)
The function verifies, whether the indexed variable exists and reads the maximum number of bytes into the
buffer of the variable memory of opv_Buffer.
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 ...