7 Teleservice Application Framework
User Manual 170/374
7.3.5.2.8 ydatad_validate_variable
Function Description
E_DataType ydatad_validate_variable (const charn * const opcn_Type, const charn * const
opcn_Size)
The function checks whether the type of variable exists and if the size is correct. If both input values fit, the
function returns the corresponding "variable type index".
Information Flow
Input Information
allowed types:
"UINT8"
"SINT8"
"UINT16"
"SINT16"
"UINT32"
"SINT32"
"FLOAT32"
"AOBYTE"
"STRING"
pointer to the variable type
allowed type size:
"UINT8" = 1
"SINT8" = 1
"UINT16" = 2
"SINT16" = 2
"UINT32" = 4
"SINT32" = 4
"FLOAT32" = 4
"AOBYTE" = sizeof
(au8_byte)
"STRING" = strlen
(acn_string)
pointer to the size of variable type