Versions Compared

Key

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

...

NetDev_Tx()

...

The next function in the device API structure is the transmit/Tx() function. Anchor11098311109831

Files

...

Every device driver’s net_dev.c Anchor11098391109839

Prototype

...

rowspan2

...

Anchor11098401109840 

 

Note that since every device driver’s Tx() 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’static. Anchor11098411109841 Arguments Anchor11318641131864 p_if Anchor11318651131865

Arguments

pif

Pointer to the interface to start a network device.

...

p_data Anchor11319021131902

Pointer to address of the data to transmit.

...

size Anchor11319041131904

Size of the data to transmit.

Anchor11318911131891 p_err Anchor11318921131892perr

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

...

Returned Value

...

11070581107058None. Anchor11105161110516

Required Configuration

...

None. Anchor11105181110518

Notes / Warnings

...

The transmit function should perform the following actions:

...