Logo
UNICENS V2.3.0-4567
User Manual and API Reference
Ucs_Return_t Ucs_Supv_ProgramCreateIS ( Ucs_Inst_t self,
Ucs_IdentString_t is_ptr,
uint8_t *  data_ptr,
uint8_t  data_size,
uint8_t *  used_size_ptr 
)

Creates a data string from an identification string which can be used as parameter data_ptr of a Ucs_Prg_Command_t variable.

This function creates a valid programming data string out of an identification string. The function handles only identification strings of version ID 0x41.

Parameters
selfThe instance.
is_ptrReference to the identification string variable.
data_ptrReference to the result.
data_sizeSize of data_ptr (at least 14).
used_size_ptrReference to used size of data_ptr. Will be 14 if function was successful.
Returns
Possible return values are shown in the table below.
Value Description
UCS_RET_SUCCESS No error
UCS_RET_ERR_PARAM Either the parameter self is NULL, is_ptr is NULL, data_ptr is NULL, used_size_ptr is NULL or data_size is < 14.