1.3.9.1 WDRV_PIC32MZW_PS_NOTIFY_CALLBACK Typedef

C

typedef void (*WDRV_PIC32MZW_PS_NOTIFY_CALLBACK)

Summary

Callback to signal sleep entry of SMC(WSM/WDS) and exit of powersave cycle.

Description

After WiFi power-save mode is set by the user, the driver will use this callback to provide notification on each sleep entry of power-save sleep-wakeup-sleep cycle and exit notification of power-save cycle on error OR on user trigger to Run mode.

Parameters

ParamDescription
handleClient handle obtained by a call to WDRV_PIC32MZW_Open.
psModeCurrent power-save mode.
bSleepEntryTRUE on sleep entry. FALSE on power-save cycle exit.
u32SleepDurationMsDuration of sleep configured for SMC(WSM/WDS).

Remarks

The user can take necessary action on sleep entry For ex, configure RTCC and put PIC to sleep/idle.