nrfxlib API 2.8.99
|
Go to the source code of this file.
Data Structures | |
struct | nrf_modem_at_cmd_custom |
Custom AT command. More... | |
Macros | |
#define | NRF_MODEM_AT_ERROR 1 |
Modem response type for 'ERROR' responses. | |
#define | NRF_MODEM_AT_CME_ERROR 2 |
Modem response type for '+CME ERROR' responses. | |
#define | NRF_MODEM_AT_CMS_ERROR 3 |
Modem response type for '+CMS ERROR' responses. | |
Typedefs | |
typedef void(* | nrf_modem_at_notif_handler_t) (const char *notif) |
AT Notification handler prototype. | |
typedef void(* | nrf_modem_at_cfun_handler_t) (int mode) |
AT CFUN handler prototype. | |
typedef void(* | nrf_modem_at_resp_handler_t) (const char *resp) |
AT response handler prototype. | |
typedef int(* | nrf_modem_at_cmd_custom_handler_t) (char *buf, size_t len, char *at_cmd) |
AT command handler prototype. | |
Functions | |
int | nrf_modem_at_notif_handler_set (nrf_modem_at_notif_handler_t callback) |
Set a handler function for AT notifications. | |
void | nrf_modem_at_cfun_handler_set (nrf_modem_at_cfun_handler_t handler) |
Set a handler function for CFUN AT commands. | |
int | nrf_modem_at_printf (const char *fmt,...) |
Send a formatted AT command to the modem. | |
int | nrf_modem_at_scanf (const char *cmd, const char *fmt,...) |
Send an AT command to the modem and read the formatted response into the supplied argument list. | |
int | nrf_modem_at_cmd (void *buf, size_t len, const char *fmt,...) |
Send a formatted AT command to the modem and receive the response into the supplied buffer. | |
int | nrf_modem_at_cmd_async (nrf_modem_at_resp_handler_t callback, const char *fmt,...) |
Send a formatted AT command to the modem and receive the response asynchronously via a callback. | |
int | nrf_modem_at_cmd_custom_set (struct nrf_modem_at_cmd_custom *custom_commands, size_t len) |
Set a list of custom AT commands that are implemented in the application. | |
int | nrf_modem_at_sem_timeout_set (int timeout_ms) |
Configure how long to wait for ongoing AT commands to complete when sending AT commands. | |
static int | nrf_modem_at_err_type (int error) |
Return the error type represented by the return value of nrf_modem_at_printf and nrf_modem_at_cmd . | |
static int | nrf_modem_at_err (int error) |
Retrieve the specific CME or CMS error from the return value of a nrf_modem_at_printf or nrf_modem_at_cmd call. | |