Showing changes from revision #1 to #2:
Added | Removed | Changed
Message Block | |
---|---|
+20 | Pointer to buffer where receiver should put data |
+24 | Size of buffer |
Tasks should send this message either in response to a Message_DataSave message, indicating that you want to use memory transfer, or in response to a Message_RAMTransmit message, to request more data.
This message should always be sent as a User_Message_Recorded, so that if it is unanswered the task can either revert to the file transfer protocol, or abort the data transfer.
Before sending this message, it is important to allocate a buffer for the data-saving task to write data to. You can use the estimated data size from the Message_DataSave message, but you should be prepared for more (or less) data to actually be sent.
If you receive a Message_RAMTransmit message where the data-saving task has filled the buffer (data transferred-buffer size), then you should reply with this message. If you receive a Message_RAMTransmit where the data-saving task has not filled your buffer, then this marks the successful conclusions of the transfer.
If you cannot process the received data, you should report an error and abandon the transfer.
Possible responses from the data-saving tasks:
If this message returns unanswered: