Versions Compared

Key

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

...

Include Page
css.webworks.css
css.webworks.css

Anchor
104172010699401041720
1069940
Stopping a Network Device

Anchor
104172110699421041721
1069942
NetDev_Stop() is called once each time an interface is stopped.

Anchor
104172210503681041722
1050368
NetDev_Stop() must perform the following operations:

  1. Anchor
    104172310503691041723
    1050369
    Disable the receiver and transmitter.
  2. Anchor
    104172410503701041724
    1050370
    Disable all local MAC interrupt sources.
  3. Anchor
    104172510503711041725
    1050371
    Clear all local MAC interrupt status flags.
  4. Anchor
    104172610503721041726
    For DMA devices, re-initialize all receive descriptors
    1050372
    Power down the wireless device via network device’s BSP function pointer, NetDev_WiFi_Stop().
  5. Anchor
    104172710503731041727
    1050373
    For DMA deviceswireless devices which can queued up packet to transmit, free all transmit descriptors buffer not yet transmitted by calling NetOS_IF_DeallocTaskPost() with the address of the transmit descriptor buffer data areas.
  6. Anchor
    104172810503751041728
    For DMA devices, re-initialize all transmit descriptors.
    Anchor
    104172910417291050375
    Set perr to NET_DEV_ERR_NONE if no error occurs. Otherwise, set perr to an appropriate network device error code.
HTML Table
summary
classWarning
Table Row (tr)
Table Cell (td)

Anchor
1060333
1060333
 

Table Cell (td)

Anchor
1060335
1060335
Some wireless module return result of commands via a response. The device’s Wireless Manager function pointer, NetWiFiMgr_Mgmt() should be used to perform these type of command since it will return only when the response is received and processed.