nrfxlib API 2.7.99
Loading...
Searching...
No Matches
mpsl_pm.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
16#ifndef MPSL_PM_H__
17#define MPSL_PM_H__
18
19#include <stdbool.h>
20#include <stdint.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26
27#define MPSL_PM_EVENT_TIME_INVALID UINT64_MAX
28
30typedef enum
31{
36
42typedef struct
43{
46 uint8_t cnt_flag;
48
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif // MPSL_PM_H__
62
bool mpsl_pm_params_get(mpsl_pm_params_t *p_params)
Get latency requirements and next expected event time.
mpsl_pm_event_state_t
MPSL Power Management state in regards to next event.
Definition: mpsl_pm.h:31
@ MPSL_PM_EVENT_STATE_BEFORE_EVENT
Definition: mpsl_pm.h:33
@ MPSL_PM_EVENT_STATE_NO_EVENTS_LEFT
Definition: mpsl_pm.h:34
@ MPSL_PM_EVENT_STATE_IN_EVENT
Definition: mpsl_pm.h:32
uint8_t cnt_flag
Used both to inform low priority that it has been preempted and to keep track of PM parameter updates...
Definition: mpsl_pm.h:46
mpsl_pm_event_state_t event_state
State of event mpsl_pm_event_state_t.
Definition: mpsl_pm.h:45
uint64_t event_time_abs_us
Absolute time of next event. Only valid during MPSL_PM_EVENT_STATE_BEFORE_EVENT.
Definition: mpsl_pm.h:44
MPSL Power Management parameters.
Definition: mpsl_pm.h:43