nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
reset_evt_service.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 SSF_RESET_EVT_SERVICE_H__
8#define SSF_RESET_EVT_SERVICE_H__
9
10#include <stdint.h>
11
12#include <nrfx.h>
14
18#define SSF_RESET_EVT_ERROR_SUB 1
19
30typedef int (*ssf_reset_evt_callback)(uint32_t domains, uint32_t delay_ms, void *user_data);
31
43
52
62int ssf_reset_evt_notify(uint32_t domains, uint32_t delay_ms);
63
64#endif /* SSF_RESET_EVT_SERVICE_H__ */
int(* ssf_reset_evt_callback)(uint32_t domains, uint32_t delay_ms, void *user_data)
User callback invoked by client of reset event service for incoming notifications.
Definition: reset_evt_service.h:30
int ssf_reset_evt_unsubscribe(void)
Unsubscribe from all reset event service notifications.
int ssf_reset_evt_subscribe(ssf_reset_evt_callback callback, void *context)
Subscribe to reset event notifications.
int ssf_reset_evt_notify(uint32_t domains, uint32_t delay_ms)
Notify all subscribed clients about an incoming reset. Note that this is a server side function.