NetIF_ISR_Handler

Handle a network interface’s device interrupts.

Files

net_if.h/net_if.c

Prototype

          void NetIF_ISR_Handler (NET_IF_NBR        if_nbr,
                                  NET_DEV_ISR_TYPE  type,
                                  NET_ERR          *p_err);

Arguments

if_nbr

Network interface number to handler device interrupts.

type

Device interrupt type(s) to handle:

NET_DEV_ISR_TYPE_UNKNOWN

Handle unknown device interrupts.

NET_DEV_ISR_TYPE_RX

Handle device receive interrupts.

NET_DEV_ISR_TYPE_RX_OVERRUN

Handle device receive overrun interrupts.

NET_DEV_ISR_TYPE_TX_RDY

Handle device transmit ready interrupts.

NET_DEV_ISR_TYPE_TX_COMPLETE

Handle device transmit complete interrupts.

This is not an exclusive list of interrupt types and specific network device’s may handle other types of interrupts.

p_err

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

NET_IF_ERR_NONE
NET_IF_ERR_INVALID_CFG
NET_IF_ERR_NULL_FNCT
NET_IF_ERR_INVALID_STATE
NET_ERR_INIT_INCOMPLETE
NET_IF_ERR_INVALID_IF

This is not an exclusive list of return errors and specific network interface’s or device’s may return any other specific errors as required.

Returned Value

None.

Required Configuration

None.

Notes / Warnings

This function is a network interface (IF) to network device function & SHOULD be called only by appropriate network device driver ISR handler function(s).