Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan2

Anchor
1109713
1109713
static void NetDev_Start (NET_IF *pifp_if,

Anchor
113587511514171135875
1151417
NET_ERR *perrp_err);

Table Row (tr)

Anchor
1109718
1109718
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’.

Anchor
1109719
1109719
Arguments

Anchor
1109720
1109720
pif p_if

Anchor
1131827
1131827
Pointer to the interface to start a network device.

Anchor
1109721
1109721
perr p_err

Anchor
1131829
1131829
Pointer to variable that will receive the return error code from this function.

...

  1. Anchor
    1090974
    1090974
    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. Anchor10909811090981
  2. 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.
  3. Anchor
    1132979
    1132979
    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:

...

  1. Anchor
    1091009
    1091009
    Initialize additional MAC registers required by the MAC for proper operation.
  2. Anchor
    1091897
    1091897
    Clear all interrupt flags.
  3. Anchor
    1091023
    1091023
    Locally enable interrupts on the hardware device. The host interrupt controller should have already been configured within the device driver Init() function.
  4. Anchor
    1091030
    1091030
    Enable the receiver and transmitter.
  5. Anchor
    1091037
    1091037
    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.