c4glteatt 2.0.0.0
c4glteatt.h File Reference

This file contains API for 4G LTE-ATT 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  c4glteatt_t
 4G LTE-ATT Click context object. More...
 
struct  c4glteatt_cfg_t
 4G LTE-ATT Click configuration object. More...
 

Macros

#define C4GLTEATT_CMD_AT   "AT"
 4G LTE-ATT description setting.
 
#define C4GLTEATT_CMD_ATI   "ATI"
 
#define C4GLTEATT_CMD_CGMR   "AT+CGMR"
 
#define C4GLTEATT_CMD_CFUN   "AT+CFUN"
 
#define C4GLTEATT_CMD_CREG   "AT+CREG"
 
#define C4GLTEATT_CMD_CGREG   "AT+CGREG"
 
#define C4GLTEATT_CMD_CGDCONT   "AT+CGDCONT"
 
#define C4GLTEATT_CMD_CIMI   "AT+CIMI"
 
#define C4GLTEATT_CMD_CMEE   "AT+CMEE"
 
#define C4GLTEATT_CMD_CGATT   "AT+CGATT"
 
#define C4GLTEATT_CMD_CSQ   "AT+CSQ"
 
#define C4GLTEATT_CMD_COPS   "AT+COPS"
 
#define C4GLTEATT_CMD_CMGS   "AT+CMGS"
 
#define C4GLTEATT_CMD_CMGF   "AT+CMGF"
 
#define DRV_RX_BUFFER_SIZE   256
 4G LTE-ATT driver buffer size.
 
#define DRV_TX_BUFFER_SIZE   256
 
#define C4GLTEATT_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  c4glteatt_return_value_t { C4GLTEATT_OK = 0 , C4GLTEATT_ERROR = -1 }
 4G LTE-ATT Click return value data. More...
 

Functions

void c4glteatt_cfg_setup (c4glteatt_cfg_t *cfg)
 4G LTE-ATT configuration object setup function.
 
err_t c4glteatt_init (c4glteatt_t *ctx, c4glteatt_cfg_t *cfg)
 4G LTE-ATT initialization function.
 
void c4glteatt_module_power_on (c4glteatt_t *ctx)
 Power ON the module function.
 
err_t c4glteatt_generic_write (c4glteatt_t *ctx, char *data_buf, uint16_t len)
 4G LTE-ATT data writing function.
 
err_t c4glteatt_generic_read (c4glteatt_t *ctx, char *data_buf, uint16_t max_len)
 4G LTE-ATT data reading function.
 
void c4glteatt_set_rts_pin (c4glteatt_t *ctx, uint8_t state)
 Sets state of the RTS pin.
 
void c4glteatt_set_pwk_pin (c4glteatt_t *ctx, uint8_t state)
 Sets state of the PWK pin.
 
uint8_t c4glteatt_get_cts_pin (c4glteatt_t *ctx)
 CTS Pin Get function.
 
uint8_t c4glteatt_get_sta_pin (c4glteatt_t *ctx)
 STA Pin Get function.
 
uint8_t c4glteatt_get_ring_pin (c4glteatt_t *ctx)
 RING Pin Get function.
 
void c4glteatt_send_cmd (c4glteatt_t *ctx, char *cmd)
 Send command function.
 
void c4glteatt_send_cmd_with_parameter (c4glteatt_t *ctx, char *at_cmd_buf, char *param_buf)
 Send command function with parameter.
 
void c4glteatt_send_cmd_check (c4glteatt_t *ctx, char *at_cmd_buf)
 Check the sent command.
 
void c4glteatt_send_cmd_parameter_check (c4glteatt_t *ctx, char *at_cmd_buf)
 Check the command parameters.
 
void c4glteatt_set_sim_apn (c4glteatt_t *ctx, char *sim_apn)
 Set sim card APN.
 
void c4glteatt_send_sms_text (c4glteatt_t *ctx, char *phone_number, char *sms_text)
 4G LTE-ATT send SMS in text mode.
 
err_t c4glteatt_send_sms_pdu (c4glteatt_t *ctx, char *service_center_number, char *phone_number, char *sms_text)
 4G LTE-ATT send SMS in PDU mode.
 

Detailed Description

This file contains API for 4G LTE-ATT Click Driver.

Enumeration Type Documentation

◆ c4glteatt_return_value_t

4G LTE-ATT Click return value data.

Predefined enum values for driver return values.

Enumerator
C4GLTEATT_OK 
C4GLTEATT_ERROR