Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10699401069940 Stopping a Network Device Anchor10699421069942NetDev_Stop() is called once each time an interface is stopped. Anchor

10503681050368NetDev_Stop() must perform the following operations:

  1. Anchor10503691050369Disable the receiver and transmitter. Anchor10503701050370
  2. Disable all local MAC interrupt sources.
  3. Anchor10503711050371Clear all local MAC interrupt status flags. Anchor10503721050372
  4. Power down the wireless device via network device’s BSP function pointer, NetDev_WiFi_Stop(). Anchor10503731050373 For wireless devices which can queued up packet to transmitFor DMA devices, re-initialize all receive descriptors.
  5. 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.
  6. Anchor10503751050375For DMA devices, re-initialize all transmit descriptors.
  7. Set perr to NET_DEV_ERR_NONE if no error occurs. Otherwise, set perr to an appropriate network device error code.

...

  1. .