tfWaitSentInterface

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfWaitSentInterface (ttUserInterface interfaceHandle);


Function Description

This function is used to wait for a tfNotifyInterfaceIsr() function to be called from the transmit complete interrupt service routine; if there is none, then it waits. This function will wait until the accumulated numberBytesSent notified by tfNotifyInterfaceIsr() has reached TM_NOTIFY_SEND_LOW_WATER (2048 by default).


Note Note: tfWaitSentInterface() can only be used when there is a separate send complete task.


Parameters

  • interfaceHandle
    The interface handle for the device we wish to wait for a transmit complete to occur.


Returns

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


Table of Contents >> Programmer's Reference