13#ifndef ZEPHYR_INCLUDE_DRIVERS_CELLULAR_H_
14#define ZEPHYR_INCLUDE_DRIVERS_CELLULAR_H_
105 char *info,
size_t size);
static int cellular_get_signal(const struct device *dev, const enum cellular_signal_type type, int16_t *value)
Get signal for the device.
Definition cellular.h:190
int(* cellular_api_get_modem_info)(const struct device *dev, const enum cellular_modem_info_type type, char *info, size_t size)
API for getting modem information.
Definition cellular.h:103
int(* cellular_api_get_registration_status)(const struct device *dev, enum cellular_access_technology tech, enum cellular_registration_status *status)
API for getting registration status.
Definition cellular.h:108
cellular_access_technology
Cellular access technologies.
Definition cellular.h:32
int(* cellular_api_get_supported_networks)(const struct device *dev, const struct cellular_network **networks, uint8_t *size)
API for getting supported networks.
Definition cellular.h:94
static int cellular_get_supported_networks(const struct device *dev, const struct cellular_network **networks, uint8_t *size)
Get supported cellular networks for the device.
Definition cellular.h:165
int(* cellular_api_configure_networks)(const struct device *dev, const struct cellular_network *networks, uint8_t size)
API for configuring networks.
Definition cellular.h:89
cellular_registration_status
Definition cellular.h:79
cellular_signal_type
Cellular signal type.
Definition cellular.h:57
static int cellular_get_modem_info(const struct device *dev, const enum cellular_modem_info_type type, char *info, size_t size)
Get modem info for the device.
Definition cellular.h:215
int(* cellular_api_get_signal)(const struct device *dev, const enum cellular_signal_type type, int16_t *value)
API for getting network signal strength.
Definition cellular.h:99
static int cellular_configure_networks(const struct device *dev, const struct cellular_network *networks, uint8_t size)
Configure cellular networks for the device.
Definition cellular.h:142
cellular_modem_info_type
Cellular modem info type.
Definition cellular.h:64
static int cellular_get_registration_status(const struct device *dev, enum cellular_access_technology tech, enum cellular_registration_status *status)
Get network registration status for the device.
Definition cellular.h:240
@ CELLULAR_ACCESS_TECHNOLOGY_LTE
Definition cellular.h:37
@ CELLULAR_ACCESS_TECHNOLOGY_UMTS
Definition cellular.h:35
@ CELLULAR_ACCESS_TECHNOLOGY_NB_IOT
Definition cellular.h:40
@ CELLULAR_ACCESS_TECHNOLOGY_GPRS
Definition cellular.h:34
@ CELLULAR_ACCESS_TECHNOLOGY_LTE_CAT_M2
Definition cellular.h:39
@ CELLULAR_ACCESS_TECHNOLOGY_GSM
Definition cellular.h:33
@ CELLULAR_ACCESS_TECHNOLOGY_EDGE
Definition cellular.h:36
@ CELLULAR_ACCESS_TECHNOLOGY_LTE_CAT_M1
Definition cellular.h:38
@ CELLULAR_REGISTRATION_UNKNOWN
Definition cellular.h:84
@ CELLULAR_REGISTRATION_SEARCHING
Definition cellular.h:82
@ CELLULAR_REGISTRATION_DENIED
Definition cellular.h:83
@ CELLULAR_REGISTRATION_REGISTERED_HOME
Definition cellular.h:81
@ CELLULAR_REGISTRATION_NOT_REGISTERED
Definition cellular.h:80
@ CELLULAR_REGISTRATION_REGISTERED_ROAMING
Definition cellular.h:85
@ CELLULAR_SIGNAL_RSRQ
Definition cellular.h:60
@ CELLULAR_SIGNAL_RSRP
Definition cellular.h:59
@ CELLULAR_SIGNAL_RSSI
Definition cellular.h:58
@ CELLULAR_MODEM_INFO_SIM_IMSI
International Mobile Subscriber Identity.
Definition cellular.h:74
@ CELLULAR_MODEM_INFO_MANUFACTURER
Modem manufacturer.
Definition cellular.h:70
@ CELLULAR_MODEM_INFO_MODEL_ID
Modem model ID.
Definition cellular.h:68
@ CELLULAR_MODEM_INFO_SIM_ICCID
Integrated Circuit Card Identification Number (SIM)
Definition cellular.h:76
@ CELLULAR_MODEM_INFO_FW_VERSION
Modem fw version.
Definition cellular.h:72
@ CELLULAR_MODEM_INFO_IMEI
International Mobile Equipment Identity.
Definition cellular.h:66
#define ENOSYS
Function not implemented.
Definition errno.h:82
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
__INT16_TYPE__ int16_t
Definition stdint.h:73
Cellular driver API.
Definition cellular.h:113
cellular_api_get_supported_networks get_supported_networks
Definition cellular.h:115
cellular_api_get_registration_status get_registration_status
Definition cellular.h:118
cellular_api_get_signal get_signal
Definition cellular.h:116
cellular_api_get_modem_info get_modem_info
Definition cellular.h:117
cellular_api_configure_networks configure_networks
Definition cellular.h:114
Cellular network structure.
Definition cellular.h:44
uint16_t * bands
List of bands, as defined by the specified cellular access technology, to enables.
Definition cellular.h:51
uint16_t size
Size of bands.
Definition cellular.h:53
enum cellular_access_technology technology
Cellular access technology.
Definition cellular.h:46
Runtime device structure (in ROM) per driver instance.
Definition device.h:411
const void * api
Address of the API structure exposed by the device instance.
Definition device.h:417