EasyManua.ls Logo

STW TC1 - Page 181

STW TC1
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Teleservice Application Framework
User Manual 181/374
}E_DataType;
Example
// Global module
sint32 s32_DataPoolIndex;
sint32 s32_ListIndex;
sint32 s32_VarIndex;
T_DATA_VARIABLE_INFO t_DataVariableInfo;
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 , "Logitude");
7.3.5.4.6 ydatad_get_list_index
Function Description
sint32 ydatad_get_list_index (const sint32 ops32_DatapoolIndex, const charn * const
opcn_VariableListName)
The function returns the variable list index number ops32_DatapoolIndex, of the variable list name
opcn_VariableListName.
Information Flow
Input Information
Parameter
Range
Description
os32_DatapoolIndex
0 .. maximum of sint32
includes the index of the data pool
opcn_VariableListName
1 ..
MAX_DP_NAME_LENGTH
pointer to the variable list name
Output Information
Return Value
Description
>= 0
Returns the data pool index number of the named list
C_UNKNOWN_ERR
NULL pointer
C_RANGE
Data pool not initialized or data pool index invalid or variable list name out of range
Structure T_DATA_VARIABLE_INFO
typedef struct
{
charn acn_VarName[MAX_DP_NAME_LENGTH]; // Variable name, max size of 32
charn acn_Type[MAX_DP_TYPENAME_LENGTH]; // Type of variable: max size of 10

Table of Contents