Zephyr API Documentation  3.0.0
A Scalable Open Source RTOS
3.0.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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#define GSM_PPP_MDM_MANUFACTURER_LENGTH 10
11#define GSM_PPP_MDM_MODEL_LENGTH 16
12#define GSM_PPP_MDM_REVISION_LENGTH 64
13#define GSM_PPP_MDM_IMEI_LENGTH 16
14#define GSM_PPP_MDM_IMSI_LENGTH 16
15#define GSM_PPP_MDM_ICCID_LENGTH 32
16
22#if defined(CONFIG_MODEM_SIM_NUMBERS)
23 char mdm_imsi[GSM_PPP_MDM_IMSI_LENGTH];
24 char mdm_iccid[GSM_PPP_MDM_ICCID_LENGTH];
25#endif
27};
28
30struct device;
31typedef void (*gsm_modem_power_cb)(const struct device *, void *);
32
33void gsm_ppp_start(const struct device *dev);
34void gsm_ppp_stop(const struct device *dev);
48 gsm_modem_power_cb modem_on,
49 gsm_modem_power_cb modem_off,
50 void *user_data);
51
59const struct gsm_ppp_modem_info *gsm_ppp_modem_info(const struct device *dev);
60
61#endif /* ZEPHYR_INCLUDE_DRIVERS_MODEM_GSM_PPP_H_ */
#define GSM_PPP_MDM_IMEI_LENGTH
Definition: gsm_ppp.h:13
#define GSM_PPP_MDM_ICCID_LENGTH
Definition: gsm_ppp.h:15
const struct gsm_ppp_modem_info * gsm_ppp_modem_info(const struct device *dev)
Get GSM modem information.
#define GSM_PPP_MDM_IMSI_LENGTH
Definition: gsm_ppp.h:14
#define GSM_PPP_MDM_MODEL_LENGTH
Definition: gsm_ppp.h:11
#define GSM_PPP_MDM_MANUFACTURER_LENGTH
Definition: gsm_ppp.h:10
#define GSM_PPP_MDM_REVISION_LENGTH
Definition: gsm_ppp.h:12
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:450
Definition: gsm_ppp.h:17
char mdm_revision[64]
Definition: gsm_ppp.h:20
char mdm_manufacturer[10]
Definition: gsm_ppp.h:18
int mdm_rssi
Definition: gsm_ppp.h:26
char mdm_imei[16]
Definition: gsm_ppp.h:21
char mdm_model[16]
Definition: gsm_ppp.h:19
static const intptr_t user_data[5]
Definition: main.c:590