Function Prototypes:ttDevOneScatSendFunc
Table of Contents >> Integrating Treck >> Adding a Device Driver
| int (*ttDevOneScatSendFuncPtr) | ( |
| ttUserInterface interfaceHandle, | |
| ttUserPacketPtr packetUPtr | |
| ); |
Function Description
This device driver function is registered with the Treck stack via tfUseInterfaceOneScatSend. Treck will call this function when a packet is to be sent on the specified interface.
Parameters
- interfaceHandle
- The interface handle as returned by tfAddInterface
- packetUPtr
- A pointer to the ttUserPacket structure
Returns
- int
- Valid values are TM_DEV_OKAY to indicate success and TM_DEV_ERROR to indicate failure.
Table of Contents >> Integrating Treck >> Adding a Device Driver