tfWaitReceiveInterface

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfWaitReceiveInterface (ttUserInterface interfaceHandle);


Function Description

This function is used to wait for the tfNotifyInterfaceIsr() routine to be called from the device driver's receive interrupt service routine. If there is no call to tfNotifyInterfaceIsr(), then it waits. It returns each time that there is ONE new packet to be received (which is signaled by tfNotifyInterfaceIsr()). The caller should then call tfRecvInterface() when this call completes successfully.


Note Note: tfWaitReceiveInterface() can only be used when there is a separate receive task.


Parameters

  • interfaceHandle
    The interface handle for the device we wish to wait for data on.


Returns

  • TM_ENOERROR
    Success.
  • TM_ENOBUFS
    Insufficient memory to complete the operation.


Table of Contents >> Programmer's Reference