nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
psm.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef PSM_H__
8#define PSM_H__
9
10#include <modem/lte_lc.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16/* Set modem PSM parameters. */
17int psm_param_set(const char *rptau, const char *rat);
18
19/* Set modem PSM parameters. */
20int psm_param_set_seconds(int rptau, int rat);
21
22/* Request modem to enable or disable Power Saving Mode (PSM). */
23int psm_req(bool enable);
24
25/* Request modem to enable or disable proprietary Power Saving Mode (PSM). */
26int psm_proprietary_req(bool enable);
27
28/* Get the current PSM (Power Saving Mode) configuration. */
29int psm_get(int *tau, int *active_time);
30
31/* Send PSM configuration event update. */
32void psm_evt_update_send(struct lte_lc_psm_cfg *psm_cfg);
33
34/* Parse PSM parameters. */
35int psm_parse(const char *active_time_str, const char *tau_ext_str,
36 const char *tau_legacy_str, struct lte_lc_psm_cfg *psm_cfg);
37
38/* Get PSM work task. */
39struct k_work *psm_work_get(void);
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* PSM_H__ */
int psm_param_set_seconds(int rptau, int rat)
int psm_param_set(const char *rptau, const char *rat)
int psm_proprietary_req(bool enable)
void psm_evt_update_send(struct lte_lc_psm_cfg *psm_cfg)
int psm_req(bool enable)
int psm_parse(const char *active_time_str, const char *tau_ext_str, const char *tau_legacy_str, struct lte_lc_psm_cfg *psm_cfg)
struct k_work * psm_work_get(void)
int psm_get(int *tau, int *active_time)
Definition lte_lc.h:353