Include Page |
---|
| css.uC-TCP-IP Wireless Device Driver APIs.css |
---|
| css.uC-TCP-IP Wireless Device Driver APIs.css |
---|
|
Include Page |
---|
| css.webworks.css |
---|
| css.webworks.css |
---|
|
...
HTML Table |
---|
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| static void NetDev_Stop (NET_IF *pifp_if, Anchor |
---|
| 113587611514181135876 |
---|
| 1151418 |
---|
| NET_ERR *perrp_err); |
|
|
Note that since every device driver’s Stop() function is accessed only by function pointer via the device driver’s API structure, it doesn’t need to be globally available and should therefore be declared as ‘static’.
Arguments
pif p_if Pointer to the interface to start a network device.
perr p_err Pointer to variable that will receive the return error code from this function.
...
- Disable the receiver and transmitter.
- Disable all local MAC interrupt sources.
- Clear all local MAC interrupt status flags.
- For DMA devices, re-initialize all receive descriptors.
Anchor |
---|
1091107 | 1091107 | For DMA devices, free all transmit descriptors by calling NetOS_IF_DeallocTaskPost() with the address of the transmit descriptor data areas Power down the wireless device. - For DMA devices, re-initialize all transmit descriptors. Set perr p_err to NET_DEV_ERR_NONE if no error occurs. Otherwise, set perr p_err to an appropriate network device error code.