Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gsm_ppp.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Endian Technologies AB
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_MODEM_GSM_PPP_H_
8#define ZEPHYR_INCLUDE_DRIVERS_MODEM_GSM_PPP_H_
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#define GSM_PPP_MDM_MANUFACTURER_LENGTH 10
15#define GSM_PPP_MDM_MODEL_LENGTH 16
16#define GSM_PPP_MDM_REVISION_LENGTH 64
17#define GSM_PPP_MDM_IMEI_LENGTH 16
18#define GSM_PPP_MDM_IMSI_LENGTH 16
19#define GSM_PPP_MDM_ICCID_LENGTH 32
20
26#if defined(CONFIG_MODEM_SIM_NUMBERS)
27 char mdm_imsi[GSM_PPP_MDM_IMSI_LENGTH];
28 char mdm_iccid[GSM_PPP_MDM_ICCID_LENGTH];
29#endif
31};
32
34struct device;
35typedef void (*gsm_modem_power_cb)(const struct device *, void *);
36
37void gsm_ppp_start(const struct device *dev);
38void gsm_ppp_stop(const struct device *dev);
52 gsm_modem_power_cb modem_on,
53 gsm_modem_power_cb modem_off,
54 void *user_data);
55
63const struct gsm_ppp_modem_info *gsm_ppp_modem_info(const struct device *dev);
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif /* ZEPHYR_INCLUDE_DRIVERS_MODEM_GSM_PPP_H_ */
#define GSM_PPP_MDM_IMEI_LENGTH
Definition: gsm_ppp.h:17
#define GSM_PPP_MDM_ICCID_LENGTH
Definition: gsm_ppp.h:19
#define GSM_PPP_MDM_IMSI_LENGTH
Definition: gsm_ppp.h:18
#define GSM_PPP_MDM_MODEL_LENGTH
Definition: gsm_ppp.h:15
#define GSM_PPP_MDM_MANUFACTURER_LENGTH
Definition: gsm_ppp.h:14
#define GSM_PPP_MDM_REVISION_LENGTH
Definition: gsm_ppp.h:16
void gsm_ppp_register_modem_power_callback(const struct device *dev, gsm_modem_power_cb modem_on, gsm_modem_power_cb modem_off, void *user_data)
Register functions callbacks for power modem on/off.
Runtime device structure (in ROM) per driver instance.
Definition: device.h:399
Definition: gsm_ppp.h:21
char mdm_revision[64]
Definition: gsm_ppp.h:24
char mdm_manufacturer[10]
Definition: gsm_ppp.h:22
int mdm_rssi
Definition: gsm_ppp.h:30
char mdm_imei[16]
Definition: gsm_ppp.h:25
char mdm_model[16]
Definition: gsm_ppp.h:23