RTDM Process Messages Function
This function processes the message received, and then executes the required task.
These tasks are:
- Reading a specific memory location
- Writing a specific memory location
- Receiving a communication link sanity check command
- Querying for the size of the buffers.
0 if initialization process was successful
-1 if initialization process failed