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_Start (NET_IF *pifp_if, Anchor |
---|
| 113587511514171135875 |
---|
| 1151417 |
---|
| NET_ERR *perrp_err); |
|
|
Note that since every device driver’s Start() 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.
...
- Configure the transmit ready semaphore count via a call to NetOS_Dev_CfgTxRdySignal(). This function call is optional and is generally performed when the hardware device supports the queuing of multiple transmit frames. By default, the count is initialized to one. However, DMA devices should set the semaphore count equal to the number of configured transmit descriptors for optimal performance. Non-DMA devices that support the queuing of more than one transmit frame may also benefit from a non-default value.
Anchor |
---|
1090981 | 1090981 - Send command to start and initialize wireless device. If a specific firmware must be loaded on the device, the firmware should be validated and updated if necessary.
- Initialize the device MAC address if applicable. For Ethernet devices, this step is mandatory. The MAC address data may come from one of three sources and should be set using the following priority scheme:
...
- Initialize additional MAC registers required by the MAC for proper operation.
- Clear all interrupt flags.
- Locally enable interrupts on the hardware device. The host interrupt controller should have already been configured within the device driver Init() function.
- Enable the receiver and transmitter.
- Set perr p_err equal to NET_DEV_ERR_NONE if no errors have occurred. Otherwise, set perr p_err to an appropriate network device error code.