rchReceivePacketDone (Function) |
|
This function works differently depending on the mode (see rchPacketMode). This function works similarly to gwReceivePacketDone.
When in unbuffered mode, this function releases the data packet and sends a reply to the sender. In buffered mode, this function has no effect as the reply was already sent by the firmware.
It is very important to use this function after calling the rchReceivePacket function block. Otherwise no further data packets will be received.
Input: reply : INT (0,128..255) Reply code returned to the sender. Returning 0 (zero) indicates success and values 128..255 are reserved for user-defined return codes. Other values will result in packet rejection (return code 4).
Returns: INT
Declaration: FUNCTION rchReceivePacketDone : INT;
Example: INCLUDE rtcu.inc |