Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gsm_ppp.h File Reference

Go to the source code of this file.

Data Structures

struct  gsm_ppp_modem_info
 

Macros

#define GSM_PPP_MDM_MANUFACTURER_LENGTH   10
 
#define GSM_PPP_MDM_MODEL_LENGTH   16
 
#define GSM_PPP_MDM_REVISION_LENGTH   64
 
#define GSM_PPP_MDM_IMEI_LENGTH   16
 
#define GSM_PPP_MDM_IMSI_LENGTH   16
 
#define GSM_PPP_MDM_ICCID_LENGTH   32
 

Functions

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.
 
const struct gsm_ppp_modem_infogsm_ppp_modem_info (const struct device *dev)
 Get GSM modem information.
 

Macro Definition Documentation

◆ GSM_PPP_MDM_ICCID_LENGTH

#define GSM_PPP_MDM_ICCID_LENGTH   32

◆ GSM_PPP_MDM_IMEI_LENGTH

#define GSM_PPP_MDM_IMEI_LENGTH   16

◆ GSM_PPP_MDM_IMSI_LENGTH

#define GSM_PPP_MDM_IMSI_LENGTH   16

◆ GSM_PPP_MDM_MANUFACTURER_LENGTH

#define GSM_PPP_MDM_MANUFACTURER_LENGTH   10

◆ GSM_PPP_MDM_MODEL_LENGTH

#define GSM_PPP_MDM_MODEL_LENGTH   16

◆ GSM_PPP_MDM_REVISION_LENGTH

#define GSM_PPP_MDM_REVISION_LENGTH   64

Function Documentation

◆ gsm_ppp_modem_info()

const struct gsm_ppp_modem_info * gsm_ppp_modem_info ( const struct device dev)

Get GSM modem information.

Parameters
devGSM modem device.
Return values
structgsm_ppp_modem_info * pointer to modem information structure.

◆ gsm_ppp_register_modem_power_callback()

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.

Parameters
devgsm modem device
modem_oncallback function to execute during gsm ppp configuring.
modem_offcallback function to execute during gsm ppp stopping.
user_datauser specified data