nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
battery_event.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _BATTERY_EVENT_H_
8#define _BATTERY_EVENT_H_
9
16#include <app_event_manager.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
24#define BATTERY_STATE_LIST \
25 X(IDLE) \
26 X(CHARGING) \
27 X(ERROR)
28
31#define X(name) _CONCAT(BATTERY_STATE_, name),
33#undef X
34
36};
37
38
41 struct app_event_header header;
42
44};
45
47
48
51 struct app_event_header header;
52
53 uint8_t level;
54};
55
57
58#ifdef __cplusplus
59}
60#endif
61
64#endif /* _BATTERY_EVENT_H_ */
Application Event Manager header.
Application Event Manager profiler tracer header.
#define APP_EVENT_TYPE_DECLARE(ename)
Declare an event type.
Definition app_event_manager.h:143
battery_state
Battery states.
Definition battery_event.h:30
@ BATTERY_STATE_COUNT
Definition battery_event.h:35
#define BATTERY_STATE_LIST
Battery state list.
Definition battery_event.h:24
uint8_t level
Definition battery_event.h:53
struct app_event_header header
Definition battery_event.h:51
Battery voltage level event.
Definition battery_event.h:50
enum battery_state state
Definition battery_event.h:43
struct app_event_header header
Definition battery_event.h:41
Battery state event.
Definition battery_event.h:40