TI中文支持网
TI专业的中文技术问题搜集分享网站

求个函数的源文件,多谢了!!!

send Callback function registered by driver to send packets.
Syntax #include <stkmain.h>

int (*send) (NETIF_DEVICE* ptr_netif_device, PBM_Handle hPkt);

Return Value The function returns a value of 0 on success and a negative value on error. On success,
the packet memory cleanup needs to be handled by the driver; but if an error is returned,
the NDK core stack will cleanup the packet.
Description The device send function is an API which is used by the core NDK stack to pass packets
to the driver for transmission. Driver authors must specify this callback function or else
the NIMU registration will fail.

这是·SPRU524H中的一个函数,请问send函数的源文件在哪?

Allen35065:

nimu_eth.c里的EmacSend函数,你找的这个send是个函数指针,会在初始化时挂载驱动层的发送函数。

赞(0)
未经允许不得转载:TI中文支持网 » 求个函数的源文件,多谢了!!!
分享到: 更多 (0)