c3gea 2.0.0.0
|
This file contains API for 3G-EA 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 | c3gea_t |
3G-EA Click context object. More... | |
struct | c3gea_cfg_t |
3G-EA Click configuration object. More... | |
Macros | |
#define | C3GEA_CMD_AT "AT" |
3G-EA control commands. | |
#define | C3GEA_CMD_ATI "ATI" |
#define | C3GEA_CMD_CFUN "AT+CFUN" |
#define | C3GEA_CMD_CREG "AT+CREG" |
#define | C3GEA_CMD_CGDCONT "AT+CGDCONT" |
#define | C3GEA_CMD_CSQ "AT+CSQ" |
#define | C3GEA_CMD_COPS "AT+COPS" |
#define | C3GEA_CMD_CMGS "AT+CMGS" |
#define | C3GEA_CMD_CMGF "AT+CMGF" |
#define | C3GEA_CMD_QIACT "AT+QIACT" |
#define | C3GEA_CMD_QIOPEN "AT+QIOPEN" |
#define | C3GEA_CMD_QICLOSE "AT+QICLOSE" |
#define | C3GEA_CMD_QISEND "AT+QISEND" |
#define | C3GEA_CMD_QIRD "AT+QIRD" |
#define | C3GEA_RSP_OK "OK" |
3G-EA device response for AT commands. | |
#define | C3GEA_RSP_ERROR "ERROR" |
#define | C3GEA_RX_DRV_BUFFER_SIZE 256 |
3G-EA driver buffer size. | |
#define | C3GEA_TX_DRV_BUFFER_SIZE 256 |
#define | C3GEA_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | c3gea_return_value_t { C3GEA_OK = 0 , C3GEA_ERROR = -1 , C3GEA_ERROR_TIMEOUT = -2 , C3GEA_ERROR_CMD = -3 , C3GEA_ERROR_UNKNOWN = -4 } |
3G-EA Click return value data. More... | |
Functions | |
void | c3gea_cfg_setup (c3gea_cfg_t *cfg) |
3G-EA configuration object setup function. | |
err_t | c3gea_init (c3gea_t *ctx, c3gea_cfg_t *cfg) |
3G-EA initialization function. | |
err_t | c3gea_generic_write (c3gea_t *ctx, uint8_t *data_in, uint16_t len) |
3G-EA data writing function. | |
err_t | c3gea_generic_read (c3gea_t *ctx, uint8_t *data_out, uint16_t len) |
3G-EA data reading function. | |
void | c3gea_set_rts_pin (c3gea_t *ctx, uint8_t state) |
3G-EA set rts pin function. | |
void | c3gea_set_pwk_pin (c3gea_t *ctx, uint8_t state) |
3G-EA set pwk pin function. | |
uint8_t | c3gea_get_cts_pin (c3gea_t *ctx) |
3G-EA get cts pin function. | |
uint8_t | c3gea_get_sta_pin (c3gea_t *ctx) |
3G-EA get sta pin function. | |
uint8_t | c3gea_get_ring_pin (c3gea_t *ctx) |
3G-EA get ring pin function. | |
void | c3gea_send_cmd (c3gea_t *ctx, uint8_t *cmd) |
Send command function. | |
void | c3gea_send_cmd_with_par (c3gea_t *ctx, uint8_t *at_cmd_buf, uint8_t *param_buf) |
Send command function with parameter. | |
void | c3gea_send_cmd_check (c3gea_t *ctx, uint8_t *at_cmd_buf) |
Check the sent command. | |
void | c3gea_send_cmd_par_check (c3gea_t *ctx, uint8_t *at_cmd_buf) |
Check the command parameters. | |
void | c3gea_set_sim_apn (c3gea_t *ctx, uint8_t *sim_apn) |
Set sim card APN. | |
void | c3gea_send_sms_text (c3gea_t *ctx, uint8_t *phone_number, uint8_t *sms_text) |
3G-EA send SMS in text mode. | |
err_t | c3gea_send_sms_pdu (c3gea_t *ctx, uint8_t *service_center_number, uint8_t *phone_number, uint8_t *sms_text) |
3G-EA send SMS in PDU mode. | |
This file contains API for 3G-EA Click Driver.
enum c3gea_return_value_t |