tfDeviceStorePointer
Table of Contents >> Programmer's Reference
| #include <trsocket.h> |
| int tfDeviceStorePointer | ( |
| ttUserInterface interfaceHandle, | |
| void * deviceDriverPtr | |
| ); |
Function Description
In the device driver open function, after having allocated a device driver specific structure, call tfDeviceStorePointer() to store a pointer to that structure on the interface.
Parameters
- interfaceHandle
- Interface ID as returned by tfAddInterface().
- deviceDriverPtr
- Device driver pointer to be stored on the interface.
Returns
- TM_ENOERROR
- Success.
- TM_EALREADY
- A device driver pointer was already stored on that interface.
- TM_EINVAL
- Invalid interface handle.
| See also tfDeviceClearPointer() and tfDeviceGetPointer(). |