Hello,
I have read the UM07001 emNet User Guide & Reference Manual and source code including BSP_IP.c and IP_Config_K66_ETH.c.
I learn that there are several port functions:
And I'm confused the data transmit process. Where is it recevied or sent? The functions inside the IP_HW_DRIVER or IRQHandler?
Could you help to give more details?
Thanks.
I have read the UM07001 emNet User Guide & Reference Manual and source code including BSP_IP.c and IP_Config_K66_ETH.c.
I learn that there are several port functions:
- An user could define an structure IP_HW_DRIVER which including pointer pointing to init, send, receive functions and so on.
- An user could define an structure BSP_IP_API which including pointer pointing to init, install ISR and so on.
- An user could implement an function IP_X_Config, which calls the function IP_AddEtherInterface with the parameter IP_HW_DRIVER and IP_BSP_SetAPI with the parameter BSP_IP_API
- Besides, there are several ISR implemented in the BSP_IP.c including ENET_Receive_IRQHandler, ENET_Transmit_IRQHandler and so on.
And I'm confused the data transmit process. Where is it recevied or sent? The functions inside the IP_HW_DRIVER or IRQHandler?
Could you help to give more details?
Thanks.