tfInterfaceSpinLock
Table of Contents >> Programmer's Reference
#include <trsocket.h> |
int tfInterfaceSpinLock | (ttUserInterface interfaceHandle); |
Function Description
tfInterfaceSpinLock() is called from the device driver send routine to yield the CPU to allow spin lock while waiting for room to transmit the data. This function will yield the CPU only if the user is using a transmit task to interface between the Treck stack and the device driver.
Parameters
- interfaceHandle
- The interface handle of the device we are waiting to be ready.
Returns
- TM_ENOERROR
- Success.
- TM_EPERM
- Function did not yield the CPU because the user is not using a transmit task (i.e. did not call tfInterfaceSetOptions() to turn on the transmit task option).