SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The power policy is changed through the generic sl_WlanPolicySet API, as shown in Table 16-3.
Desired Policy | API Parameters | |||
---|---|---|---|---|
Type | Policy | pVal | ValLen | |
Always On | SL_POLICY_PM | SL_ALWAYS_ON_POLICY | NULL | 0 |
Low Latency | SL_POLICY_PM | SL_LOW_LATENCY_POLICY | NULL | 0 |
Normal | SL_POLICY_PM | SL_NORMAL_POLICY | NULL | 0 |
Low Power | SL_POLICY_PM | SL_LOW_POWER_POLICY | NULL | 0 |
LSI | SL_POLICY_PM | SL_LONG_SLEEP_INTERVAL_POLICY | SlWlanPmPolicyParams_t* | sizeof(SlWlanPmPolicyParams_t) |
IoT Low Power (CC313x and CC323x only) | SL_POLICY_PM | SL_WLAN_IOT_LOW_POWER_POLICY | SlWlanPmPolicyParams_t* | sizeof(SlWlanPmPolicyParams_t) |
All settings of the sl_WlanPolicySet API are effective immediately after the call, and persistent between device resets.