7 Teleservice Application Framework
User Manual 178/374
7.3.5.4.4 ydatad_get_datapool_info
Function Description
sint32 ydatad_get_datapool_info (const sint32 os32_DatapoolIndex, T_DATA_DATAPOOL_INFO **
oppt_Datapool)
The function gets the data pool info structure from the corresponding data pool index.
Information Flow
Input Information
includes a data pool index from data pool list
Output Information
pointer to the data pool structure
Structure T_DATA_DATAPOOL_INFO
typedef struct
{
charn acn_DatapoolName[MAX_DP_NAME_LENGTH]; // Data pool name, max size 32
sint32 s32_NbOfLists; // Number of data pool lists (T_DATA_LIST_INFO)
T_DATA_LIST_INFO* pt_lists;
}T_DATA_DATAPOOL_INFO;
typedef struct
{
charn acn_ListName[MAX_DP_NAME_LENGTH]; // Name of the list, max size 32
charn acn_Description[MAX_DP_METANAME_LENGTH]; // Description of list,
max size of 64
charn acn_CreatingPRGM[MAX_DP_METANAME_LENGTH]; // Creator or program
name, max size of 64
sint32 s32_NbOfVars; // Number of variables in the list
(T_DATA_VARIABLE_INFO)
sint32 s32_SHM_ID;
sint32 s32_Sem_ID;
void* pv_SHM_Address;
T_DATA_VARIABLE_INFO* pt_Vars;
} T_DATA_LIST_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
// "UINT8"
// "SINT8"
// "UINT16"
// "SINT16"
// "UINT32"
// "SINT32"
// "FLOAT32"
// "AOBYTE"
// "STRING"
E_DataType e_TypeIndex;
sint32 s32_Size; // Size of the variable
charn acn_Unit[MAX_DP_METANAME_LENGTH]; // Unit of the variable, max size of 64
charn acn_Comment[MAX_DP_METANAME_LENGTH]; // Comment of the variable, max size of