7 Teleservice Application Framework
User Manual 184/374
Information Flow
Input Information
includes the data pool index
includes the variable list index
includes the variable index
includes the size of the buffer in bytes for the
buffer for the variable ou32_SizeOfBuffer
Output Information
pointer to the value of the variable
Function executed without error, read value and set it into given buffer was
successful
Data pool, list or variable does not exist
Example
// Global module
sint32 s32_DataPoolIndex;
sint32 s32_ListIndex;
sint32 s32_VarIndex;
float32 f32_Value;
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_get_variable (s32_DataPoolIndex, s32_ListIndex, s32_VarIndex,
&f32_Value, sizeof(float32));
if (s32_Retval == C_NO_ERR)
{
// Go on
printf("Value: %f\n", f32_Value);
}