ulink_allocate_payload() function
OpenULINK command generation helper functions ************** Allocate and initialize space in memory for OpenULINK command payload.
Arguments
ulink_cmd
pointer to command whose payload should be allocated.
size
the amount of memory to allocate (bytes).
direction
which payload to allocate.
Return value
on success: ERROR_OK on failure: ERROR_FAIL