c4glte2voicena 2.1.0.0
|
This file contains API for 4G LTE 2 Voice-NA Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | c4glte2voicena_t |
4G LTE 2 Voice-NA Click context object. More... | |
struct | c4glte2voicena_cfg_t |
4G LTE 2 Voice-NA Click configuration object. More... | |
Macros | |
#define | C4GLTE2VOICENA_CMD_AT "AT" |
4G LTE 2 Voice-NA control commands. | |
#define | C4GLTE2VOICENA_CMD_ATI "ATI" |
#define | C4GLTE2VOICENA_CMD_CGMR "AT+CGMR" |
#define | C4GLTE2VOICENA_CMD_CFUN "AT+CFUN" |
#define | C4GLTE2VOICENA_CMD_CREG "AT+CREG" |
#define | C4GLTE2VOICENA_CMD_CGREG "AT+CGREG" |
#define | C4GLTE2VOICENA_CMD_CGDCONT "AT+CGDCONT" |
#define | C4GLTE2VOICENA_CMD_CIMI "AT+CIMI" |
#define | C4GLTE2VOICENA_CMD_CMEE "AT+CMEE" |
#define | C4GLTE2VOICENA_CMD_CGATT "AT+CGATT" |
#define | C4GLTE2VOICENA_CMD_CSQ "AT+CSQ" |
#define | C4GLTE2VOICENA_CMD_COPS "AT+COPS" |
#define | C4GLTE2VOICENA_CMD_CMGS "AT+CMGS" |
#define | C4GLTE2VOICENA_CMD_CMGF "AT+CMGF" |
#define | C4GLTE2VOICENA_CMD_CGACT "AT+CGACT" |
#define | C4GLTE2VOICENA_CMD_USOCR "AT+USOCR" |
#define | C4GLTE2VOICENA_CMD_USOCO "AT+USOCO" |
#define | C4GLTE2VOICENA_CMD_USOWR "AT+USOWR" |
#define | C4GLTE2VOICENA_CMD_USOST "AT+USOST" |
#define | C4GLTE2VOICENA_CMD_USORD "AT+USORD" |
#define | C4GLTE2VOICENA_CMD_USORF "AT+USORF" |
#define | C4GLTE2VOICENA_CMD_USOCL "AT+USOCL" |
#define | C4GLTE2VOICENA_CMD_UGPS "AT+UGPS" |
#define | C4GLTE2VOICENA_CMD_UGGGA "AT+UGGGA" |
#define | C4GLTE2VOICENA_RSP_OK "OK" |
4G LTE 2 Voice-NA device response for AT commands. | |
#define | C4GLTE2VOICENA_RSP_ERROR "ERROR" |
#define | C4GLTE2VOICENA_POWER_STATE_OFF 0 |
4G LTE 2 Voice-NA power state settings. | |
#define | C4GLTE2VOICENA_POWER_STATE_ON 1 |
#define | C4GLTE2VOICENA_DRV_BUFFER_SIZE 256 |
4G LTE 2 Voice-NA driver buffer size. | |
#define | C4GLTE2VOICENA_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | c4glte2voicena_return_value_t { C4GLTE2VOICENA_OK = 0 , C4GLTE2VOICENA_ERROR = -1 , C4GLTE2VOICENA_ERROR_TIMEOUT = -2 , C4GLTE2VOICENA_ERROR_CMD = -3 , C4GLTE2VOICENA_ERROR_UNKNOWN = -4 } |
4G LTE 2 Voice-NA Click return value data. More... | |
Functions | |
void | c4glte2voicena_cfg_setup (c4glte2voicena_cfg_t *cfg) |
4G LTE 2 Voice-NA configuration object setup function. | |
err_t | c4glte2voicena_init (c4glte2voicena_t *ctx, c4glte2voicena_cfg_t *cfg) |
4G LTE 2 Voice-NA initialization function. | |
err_t | c4glte2voicena_generic_write (c4glte2voicena_t *ctx, char *data_in, uint16_t len) |
4G LTE 2 Voice-NA data writing function. | |
err_t | c4glte2voicena_generic_read (c4glte2voicena_t *ctx, char *data_out, uint16_t len) |
4G LTE 2 Voice-NA data reading function. | |
void | c4glte2voicena_set_pwr_pin (c4glte2voicena_t *ctx, uint8_t state) |
4G LTE 2 Voice-NA set PWR pin function. | |
void | c4glte2voicena_set_sts_pin (c4glte2voicena_t *ctx, uint8_t state) |
4G LTE 2 Voice-NA set STS pin function. | |
void | c4glte2voicena_set_rts_pin (c4glte2voicena_t *ctx, uint8_t state) |
4G LTE 2 Voice-NA set RTS pin function. | |
uint8_t | c4glte2voicena_get_ri_pin (c4glte2voicena_t *ctx) |
4G LTE 2 Voice-NA get RI pin function. | |
uint8_t | c4glte2voicena_get_cts_pin (c4glte2voicena_t *ctx) |
4G LTE 2 Voice-NA get CTS pin function. | |
void | c4glte2voicena_set_power_state (c4glte2voicena_t *ctx, uint8_t state) |
4G LTE 2 Voice-NA set power state function. | |
void | c4glte2voicena_send_cmd (c4glte2voicena_t *ctx, char *cmd) |
Send command function. | |
void | c4glte2voicena_send_cmd_par (c4glte2voicena_t *ctx, char *at_cmd_buf, char *param_buf) |
Send command function with parameter. | |
void | c4glte2voicena_send_cmd_check (c4glte2voicena_t *ctx, char *at_cmd_buf) |
Check the sent command. | |
void | c4glte2voicena_set_sim_apn (c4glte2voicena_t *ctx, char *sim_apn) |
Set sim card APN. | |
void | c4glte2voicena_send_sms_text (c4glte2voicena_t *ctx, char *phone_number, char *sms_text) |
4G LTE 2 Voice-NA send SMS in text mode. | |
err_t | c4glte2voicena_send_sms_pdu (c4glte2voicena_t *ctx, char *service_center_number, char *phone_number, char *sms_text) |
4G LTE 2 Voice-NA send SMS in PDU mode. | |
This file contains API for 4G LTE 2 Voice-NA Click Driver.