nrfxlib API 3.3.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
35
40typedef uint8_t mpsl_pm_event_state_t;
41
53
61
70
85
91
100
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif // MPSL_PM_H__
112
bool mpsl_pm_low_latency_requested(void)
Get low latency request status.
void mpsl_pm_low_latency_state_set(mpsl_pm_low_latency_state_t state)
Set low latency state.
mpsl_pm_low_latency_state_t mpsl_pm_low_latency_state_get(void)
Get low latency state.
uint8_t mpsl_pm_event_state_t
MPSL Power Management state in regards to next event.
Definition mpsl_pm.h:40
bool mpsl_pm_params_get(mpsl_pm_params_t *p_params)
Get next expected event time.
MPSL_PM_EVENT_STATE
Applicable values for mpsl_pm_event_state_t type.
Definition mpsl_pm.h:31
@ MPSL_PM_EVENT_STATE_BEFORE_EVENT
Definition mpsl_pm.h:32
@ MPSL_PM_EVENT_STATE_NO_EVENTS_LEFT
Definition mpsl_pm.h:33
uint8_t mpsl_pm_low_latency_state_t
MPSL Power Management low latency state.
Definition mpsl_pm.h:84
MPSL_PM_LOW_LATENCY_STATE
Applicable values for mpsl_pm_low_latency_state_t type.
Definition mpsl_pm.h:64
@ MPSL_PM_LOW_LATENCY_STATE_OFF
Definition mpsl_pm.h:65
@ MPSL_PM_LOW_LATENCY_STATE_ON
Definition mpsl_pm.h:67
@ MPSL_PM_LOW_LATENCY_STATE_RELEASING
Definition mpsl_pm.h:68
@ MPSL_PM_LOW_LATENCY_STATE_REQUESTING
Definition mpsl_pm.h:66
uint8_t cnt_flag
Event time update request counter.
Definition mpsl_pm.h:51
mpsl_pm_event_state_t event_state
State of event mpsl_pm_event_state_t.
Definition mpsl_pm.h:50
uint64_t event_time_abs_us
Absolute time of next event. Only valid during MPSL_PM_EVENT_STATE_BEFORE_EVENT.
Definition mpsl_pm.h:49
MPSL Power Management parameters.
Definition mpsl_pm.h:48