PPP_STAT_HANDLER Type
C
typedef void (*PPP_STAT_HANDLER)(DRV_HANDLE hMac, int offset, const uint8_t* pppFrame, uint32_t newValue);
Description
Prototype of a PPP statistics handler. Clients can register a handler with the PPP driver.Once an PPP statistics event occurs the PPP driver will call the registered handler.
Parameters:
hMac - driver handle (obtained by calling TCPIP_MAC_Open/DRV_PPP_MAC_Open)
offset - offset in the PPP_STATISTICS structure indicating the exact member that's incremented
pppFrame - pointer to the frame that caused the statistics increment
newValue - Updated (incremented) value of the statistics counter
Remarks:
Some statistics increment event could have pppFrame == 0
The handler has to be short and fast. It is meant for setting an event flag, not for lengthy processing!