Versions Compared

Key

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

...

Every device driver’s net_dev.c

Prototype

...

Code Block

          static void NetDev_ISR_Handler (NET_IF           *pif,
                                          NET_DEV_ISR_TYPE  type);

Note that since every device driver’s ISR_Handler() 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’.

...

type

Device’s interrupt type:

NET_DEV_ISR_TYPE_UNKNOWN
NET_DEV_ISR_TYPE_RX
NET_DEV_ISR_TYPE_RX_RUNT
NET_DEV_ISR_TYPE_RX_OVERRUN
NET_DEV_ISR_TYPE_TX_RDY
NET_DEV_ISR_TYPE_TX_COMPLETE
NET_DEV_ISR_TYPE_TX_COLLISION_LATE
NET_DEV_ISR_TYPE_TX_COLLISION_EXCESS
NET_DEV_ISR_TYPE_JABBER
NET_DEV_ISR_TYPE_BABBLE
NET_DEV_ISR_TYPE_PHY

Returned Value

None.

Required Configuration

...