nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
modem_module_event.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _MODEM_MODULE_EVENT_H_
8#define _MODEM_MODULE_EVENT_H_
9
15#include <zephyr/net/net_ip.h>
16#include <modem/lte_lc.h>
17
18#include <app_event_manager.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
126
130 uint32_t cell_id;
132 uint32_t tac;
133};
134
138 int tau;
141};
142
146 float edrx;
148 float ptw;
149};
150
152 int64_t timestamp;
153 char iccid[23];
154 char app_version[CONFIG_ASSET_TRACKER_V2_APP_VERSION_MAX_LEN];
156 char modem_fw[40];
157 char imei[16];
158};
159
161 int64_t timestamp;
162 uint16_t area_code;
163 uint32_t cell_id;
164 int16_t rsrp;
165 uint16_t mcc;
166 uint16_t mnc;
167 char ip_address[INET6_ADDRSTRLEN];
168 char apn[CONFIG_MODEM_APN_LEN_MAX];
169 char mccmnc[7];
170 uint8_t band;
172};
173
176 struct app_event_header header;
178 union {
181 struct modem_module_cell cell;
183 struct modem_module_edrx edrx;
184 /* Module ID, used when acknowledging shutdown requests. */
185 uint32_t id;
186 int err;
188};
189
191
192#ifdef __cplusplus
193}
194#endif
195
200#endif /* _MODEM_MODULE_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
lte_lc_lte_mode
Definition lte_lc.h:89
modem_module_event_type
Modem event types submitted by Modem module.
Definition modem_module_event.h:26
@ MODEM_EVT_CARRIER_REBOOT_REQUEST
Definition modem_module_event.h:121
@ MODEM_EVT_LTE_CELL_UPDATE
Definition modem_module_event.h:52
@ MODEM_EVT_CARRIER_FOTA_PENDING
Definition modem_module_event.h:111
@ MODEM_EVT_LTE_PSM_UPDATE
Definition modem_module_event.h:58
@ MODEM_EVT_MODEM_STATIC_DATA_NOT_READY
Definition modem_module_event.h:82
@ MODEM_EVT_MODEM_DYNAMIC_DATA_NOT_READY
Definition modem_module_event.h:88
@ MODEM_EVT_LTE_CONNECTING
Definition modem_module_event.h:46
@ MODEM_EVT_MODEM_STATIC_DATA_READY
Definition modem_module_event.h:70
@ MODEM_EVT_SHUTDOWN_READY
Definition modem_module_event.h:98
@ MODEM_EVT_ERROR
Definition modem_module_event.h:104
@ MODEM_EVT_LTE_EDRX_UPDATE
Definition modem_module_event.h:64
@ MODEM_EVT_LTE_CONNECTED
Definition modem_module_event.h:36
@ MODEM_EVT_LTE_DISCONNECTED
Definition modem_module_event.h:41
@ MODEM_EVT_CARRIER_EVENT_LTE_LINK_DOWN_REQUEST
Definition modem_module_event.h:123
@ MODEM_EVT_CARRIER_EVENT_LTE_LINK_UP_REQUEST
Definition modem_module_event.h:122
@ MODEM_EVT_CARRIER_EVENT_LTE_POWER_OFF_REQUEST
Definition modem_module_event.h:124
@ MODEM_EVT_INITIALIZED
Definition modem_module_event.h:31
@ MODEM_EVT_MODEM_DYNAMIC_DATA_READY
Definition modem_module_event.h:76
@ MODEM_EVT_BATTERY_DATA_NOT_READY
Definition modem_module_event.h:93
@ MODEM_EVT_CARRIER_FOTA_STOPPED
Definition modem_module_event.h:116
Definition board.h:17
uint32_t tac
Definition modem_module_event.h:132
uint32_t cell_id
Definition modem_module_event.h:130
LTE cell information.
Definition modem_module_event.h:128
char ip_address[INET6_ADDRSTRLEN]
Definition modem_module_event.h:167
int64_t timestamp
Definition modem_module_event.h:161
uint16_t mnc
Definition modem_module_event.h:166
int16_t rsrp
Definition modem_module_event.h:164
uint16_t mcc
Definition modem_module_event.h:165
uint32_t cell_id
Definition modem_module_event.h:163
char apn[CONFIG_MODEM_APN_LEN_MAX]
Definition modem_module_event.h:168
char mccmnc[7]
Definition modem_module_event.h:169
uint16_t area_code
Definition modem_module_event.h:162
uint8_t band
Definition modem_module_event.h:170
enum lte_lc_lte_mode nw_mode
Definition modem_module_event.h:171
Definition modem_module_event.h:160
float ptw
Definition modem_module_event.h:148
float edrx
Definition modem_module_event.h:146
eDRX information.
Definition modem_module_event.h:144
enum modem_module_event_type type
Definition modem_module_event.h:177
union modem_module_event::@12 data
struct app_event_header header
Definition modem_module_event.h:176
uint32_t id
Definition modem_module_event.h:185
int err
Definition modem_module_event.h:186
Modem event.
Definition modem_module_event.h:175
int tau
Definition modem_module_event.h:138
int active_time
Definition modem_module_event.h:140
PSM information.
Definition modem_module_event.h:136
char modem_fw[40]
Definition modem_module_event.h:156
char imei[16]
Definition modem_module_event.h:157
char app_version[CONFIG_ASSET_TRACKER_V2_APP_VERSION_MAX_LEN]
Definition modem_module_event.h:154
int64_t timestamp
Definition modem_module_event.h:152
char iccid[23]
Definition modem_module_event.h:153
Definition modem_module_event.h:151