$err = $mod->giveData($data);
$err = $mod->giveData
This function copies the address of data to an internal structure. When postMessage() is called, a copy of the data given will be sent to the RSPD.
Returns -1 if an error occurred, or 0 otherwise. In case of error, the program will croak() with an appriopriate message.