Function Prototypes:ttDevSendFunc
Table of Contents >> Programmer's Reference >> tfAddInterface
int ttDevSendFunc | ( |
ttUserInterface interfaceHandle, | |
char * dataPtr, | |
int dataLength, | |
int flag | |
); |
Function Description
This device driver function is defined by the user and called by Treck to send data.
Parameters
- interfaceHandle
- The interface on which to send the data.
- dataPtr
- A pointer to the data to send.
- dataLength
- The length of the data to send.
- flag
- One of two possible values
- TM_USER_BUFFER_MORE
- The driver send function is being called to send a scattered buffer and more data is to follow for this frame.
- TM_USER_BUFFER_LAST
- This is the last, and possibly only, call to the driver send routine for this frame. If the device does not support scattered send, the flag will always be set to TM_USER_BUFFER_LAST with the exception of PPP or SLIP serial devices.
- TM_USER_BUFFER_MORE
Returns
- int
- One of the two following values:
- TM_DEV_OKAY: Success
- TM_DEV_ERROR: Error.
- One of the two following values:
Table of Contents >> Programmer's Reference >> tfAddInterface