This function notifies the stack with both the number of packets received in an ISR and the number of packets transmitted by the chip since the last ISR. This function is to be called by the user inside an ISR, with the appropriate number of received and sent packets. This will in turn cause the stack to notify the user's application about what has occurred. In the case of received packets, tfCheckReceiveInterface() will return 0 once for each received packets if the user is in polling mode.
In blocking mode, tfWaitReceiveInterface() will return once for each received packet. For sent packets, tfCheckSentInterface() will return 0 once for each sent packet in polling mode, or tfWaitSentInterface() will return once for each sent packet in blocking mode. These functions only notify the user of a sent packet in the case that the accumulated numberBytesSent has reached TM_NOTIFY_SEND_LOW_WATER (2048 by default), since the previous notification.
- The interface handle to notify Treck of.
- The number of received packets to notify of.
- The number of packets actually sent on this interface.
- Then number of bytes actually sent on this interface.
|Note:||The values for numberRecvPackets, numberSendCompletePackets, and numberBytesSent may be 0.|
|Warning:||This function should be called only once per ISR. tfNotifyInterfaceIsr() replaces both tfNotifyReceiveInterfaceIsr() and tfNotifySentInterfaceIsr().|