PPP_EVENT_HANDLER Type

C

typedef void    (*PPP_EVENT_HANDLER)(DRV_HANDLE hMac, PPP_EVENT event, const uint8_t* pppFrame, const void* param);

Description

Prototype of a PPP event handler. Clients can register a handler with the PPP driver.Once an PPP event occurs the PPP driver will call the registered handler.

Parameters

hMac - driver handle (obtained by calling TCPIP_MAC_Open/DRV_PPP_MAC_Open)

event - the occurring event

pppFrame - pointer to the frame that caused the event and it's logged

param - user supplied handle parameter, Not used by the PPP module.

Remarks

Some events (PPP_EVENT_UP, PPP_EVENT_TMO_P, etc.) will have pppFrame == 0

The handler has to be short and fast. It is meant for setting an event flag, not for lengthy processing!