1.2.9.1 WDRV_PIC32MZW_PS_NOTIFY_CALLBACK Typedef

typedef void (*WDRV_PIC32MZW_PS_NOTIFY_CALLBACK)

C

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

Param

Description

handle

Client handle obtained by a call to WDRV_PIC32MZW_Open.

psMode

Current power-save mode.

bSleepEntry

TRUE on sleep entry. FALSE on power-save cycle exit.

u32SleepDurationMs

Duration 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.

WDRV_PIC32MZW_POWERSAVE_MODE Enum

typedef enum

{

/* Run mode : No power-save. Both TX and RX are active */

WDRV_PIC32MZW_POWERSAVE_RUN_MODE = 0,

/* WSM mode : Wireless sleep mode. TX and RX are stopped, clocks will be running. STA will be in power-save mode keeping the connection active with AP. */ WDRV_PIC32MZW_POWERSAVE_WSM_MODE = 1,

/* WDS mode : Wireless Deep sleep mode. TX and RX are stopped. clocks will be cutoff. STA will be in power-save mode keeping the connection active with AP. */ WDRV_PIC32MZW_POWERSAVE_WDS_MODE = 2

} WDRV_PIC32MZW_POWERSAVE_MODE;

C

Summary

Defines the power save modes supported by the WiFi driver/firmware.

Description

This enumeration defines the various WiFi power save modes supported by the WiFi driver/ firmware.