7 Teleservice Application Framework
User Manual
184/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
ou32_SizeOfBuffer
depends on variable size
includes the size of the buffer in bytes for the
buffer for the variable ou32_SizeOfBuffer
Output Information
Parameter
Range
Description
opv_Buffer
ou32_SizeOfBuffer
pointer to the value of the variable
Return Value
Description
C_NO_ERR
Function executed without error, read value and set it into given buffer was
successful
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;
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);
}
Содержание TC1
Страница 1: ...TC1 User Manual Version of this document V1 00r0 ...
Страница 25: ...5 Hardware User Manual 25 374 5 2 2 Block Diagram Variant TC1 WIFI ...
Страница 34: ...5 Hardware User Manual 34 374 5 6 Housing Connector Top view and side view Bottom View ...
Страница 125: ...7 Teleservice Application Framework User Manual 125 374 TAF overview ...
Страница 174: ...7 Teleservice Application Framework User Manual 174 374 ADDRESS 6 SIZE 4 TYPE UINT32 UNIT COMMENT EnginePower ...
Страница 190: ...7 Teleservice Application Framework User Manual 190 374 How the logger mechanism works ...
Страница 223: ...7 Teleservice Application Framework User Manual 223 374 Association between logic hysteresis and threshold ...
Страница 293: ...8 Development Tools User Manual 293 374 3 Adapt the Build Options in order to build the binary with debug symbols ...
Страница 302: ...8 Development Tools User Manual 302 374 2 Adapt the Build Options in order to build the binary with debug symbols ...