|
Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
Main header file for cellular modem driver API. More...
Go to the source code of this file.
Data Structures | |
| struct | cellular_network |
| Cellular network structure. More... | |
| struct | cellular_evt_modem_info |
| Payload for CELLULAR_EVENT_MODEM_INFO_CHANGED. More... | |
| struct | cellular_evt_registration_status |
| Payload for CELLULAR_EVENT_REGISTRATION_STATUS_CHANGED. More... | |
| struct | cellular_evt_modem_comms_check_result |
| Payload for CELLULAR_EVENT_MODEM_COMMS_CHECK_RESULT. More... | |
| struct | cellular_driver_api |
| Cellular driver API. More... | |
Typedefs | |
| typedef uint32_t | cellular_event_mask_t |
| typedef void(* | cellular_event_cb_t) (const struct device *dev, enum cellular_event event, const void *payload, void *user_data) |
| Prototype for cellular event callbacks. | |
| typedef int(* | cellular_api_configure_networks) (const struct device *dev, const struct cellular_network *networks, uint8_t size) |
| API for configuring networks. | |
| typedef int(* | cellular_api_get_supported_networks) (const struct device *dev, const struct cellular_network **networks, uint8_t *size) |
| API for getting supported networks. | |
| typedef int(* | cellular_api_get_signal) (const struct device *dev, const enum cellular_signal_type type, int16_t *value) |
| API for getting network signal strength. | |
| typedef 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. | |
| typedef 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. | |
| typedef int(* | cellular_api_set_apn) (const struct device *dev, const char *apn) |
| API for programming APN. | |
| typedef int(* | cellular_api_set_callback) (const struct device *dev, cellular_event_mask_t mask, cellular_event_cb_t cb, void *user_data) |
| API for registering an asynchronous callback. | |
Functions | |
| static int | cellular_configure_networks (const struct device *dev, const struct cellular_network *networks, uint8_t size) |
| Configure cellular networks for the device. | |
| 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. | |
| static int | cellular_get_signal (const struct device *dev, const enum cellular_signal_type type, int16_t *value) |
| Get signal for the device. | |
| 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. | |
| 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. | |
| static int | cellular_set_apn (const struct device *dev, const char *apn) |
| Set the APN used for PDP context. | |
| static int | cellular_set_callback (const struct device *dev, cellular_event_mask_t mask, cellular_event_cb_t cb, void *user_data) |
| Subscribe to asynchronous cellular events. | |
Main header file for cellular modem driver API.