...
Anchor
NetDev_Stop()
is called once each time an interface is stopped.NetDev_Stop()
must perform the following operations:Anchor 1050369 1050369 Disable the receiver and transmitter. 1050370Anchor 1050370 - Disable all local MAC interrupt sources.
Anchor 1050371 1050371 Clear all local MAC interrupt status flags.Anchor 1050372 1050372 - Power down the wireless device via network device’s BSP function pointer, NetDev_WiFi_Stop().
Anchor 1050373 1050373 For wireless devices which can queued up packet to transmitFor DMA devices, re-initialize all receive descriptors. - For DMA devices, free all transmit buffer not yet transmitted descriptors by calling
NetOS_IF_DeallocTaskPost()
with the address of the transmit buffer descriptor data areas. Anchor 1050375 1050375For DMA devices, re-initialize all transmit descriptors.- Set
perr
toNET_DEV_ERR_NONE
if no error occurs. Otherwise, setperr
to an appropriate network device error code.
...
- .