...
NetDev_Tx()
...
The next function in the device API structure is the transmit/Tx()
function. Anchor
Files
...
Every device driver’s net_dev.c
Anchor
Prototype
...
rowspan | 2 |
---|
...
Anchor
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
’. Anchor
Arguments
pif
Pointer to the interface to start a network device.
...
p_data
Anchor
Pointer to address of the data to transmit.
...
size
Anchor
Size of the data to transmit.
Anchor
perr
Pointer to variable that will receive the return error code from this function.
...
Returned Value
...
Required Configuration
...
None. Anchor
Notes / Warnings
...
The transmit function should perform the following actions:
...