c4gltee 2.0.0.0
c4gltee.h File Reference

This file contains API for 4G LTE-E 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  c4gltee_t
 4G LTE-E Click context object. More...
 
struct  c4gltee_cfg_t
 4G LTE-E Click configuration object. More...
 

Macros

#define C4GLTEE_CMD_AT   "AT"
 4G LTE-E description setting.
 
#define C4GLTEE_CMD_ATI   "ATI"
 
#define C4GLTEE_CMD_CGMR   "AT+CGMR"
 
#define C4GLTEE_CMD_CFUN   "AT+CFUN"
 
#define C4GLTEE_CMD_CREG   "AT+CREG"
 
#define C4GLTEE_CMD_CGREG   "AT+CGREG"
 
#define C4GLTEE_CMD_CGDCONT   "AT+CGDCONT"
 
#define C4GLTEE_CMD_CIMI   "AT+CIMI"
 
#define C4GLTEE_CMD_CMEE   "AT+CMEE"
 
#define C4GLTEE_CMD_CGATT   "AT+CGATT"
 
#define C4GLTEE_CMD_CSQ   "AT+CSQ"
 
#define C4GLTEE_CMD_COPS   "AT+COPS"
 
#define C4GLTEE_CMD_CMGS   "AT+CMGS"
 
#define C4GLTEE_CMD_CMGF   "AT+CMGF"
 
#define DRV_RX_BUFFER_SIZE   256
 4G LTE-E driver buffer size.
 
#define DRV_TX_BUFFER_SIZE   256
 
#define C4GLTEE_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  c4gltee_return_value_t { C4GLTEE_OK = 0 , C4GLTEE_ERROR = -1 }
 4G LTE-E Click return value data. More...
 

Functions

void c4gltee_cfg_setup (c4gltee_cfg_t *cfg)
 4G LTE-E configuration object setup function.
 
err_t c4gltee_init (c4gltee_t *ctx, c4gltee_cfg_t *cfg)
 4G LTE-E initialization function.
 
void c4gltee_module_power_on (c4gltee_t *ctx)
 Power ON the module function.
 
err_t c4gltee_generic_write (c4gltee_t *ctx, char *data_buf, uint16_t len)
 4G LTE-E data writing function.
 
err_t c4gltee_generic_read (c4gltee_t *ctx, char *data_buf, uint16_t max_len)
 4G LTE-E data reading function.
 
void c4gltee_set_rts_pin (c4gltee_t *ctx, uint8_t state)
 Sets state of the RTS pin.
 
void c4gltee_set_pwk_pin (c4gltee_t *ctx, uint8_t state)
 Sets state of the PWK pin.
 
uint8_t c4gltee_get_cts_pin (c4gltee_t *ctx)
 CTS Pin Get function.
 
uint8_t c4gltee_get_sta_pin (c4gltee_t *ctx)
 STA Pin Get function.
 
uint8_t c4gltee_get_ring_pin (c4gltee_t *ctx)
 RING Pin Get function.
 
void c4gltee_send_cmd (c4gltee_t *ctx, char *cmd)
 Send command function.
 
void c4gltee_send_cmd_with_parameter (c4gltee_t *ctx, char *at_cmd_buf, char *param_buf)
 Send command function with parameter.
 
void c4gltee_send_cmd_check (c4gltee_t *ctx, char *at_cmd_buf)
 Check the sent command.
 
void c4gltee_send_cmd_parameter_check (c4gltee_t *ctx, char *at_cmd_buf)
 Check the command parameters.
 
void c4gltee_set_sim_apn (c4gltee_t *ctx, char *sim_apn)
 Set sim card APN.
 
void c4gltee_send_sms_text (c4gltee_t *ctx, char *phone_number, char *sms_text)
 4G LTE-E send SMS in text mode.
 
err_t c4gltee_send_sms_pdu (c4gltee_t *ctx, char *service_center_number, char *phone_number, char *sms_text)
 4G LTE-E send SMS in PDU mode.
 

Detailed Description

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

Enumeration Type Documentation

◆ c4gltee_return_value_t

4G LTE-E Click return value data.

Predefined enum values for driver return values.

Enumerator
C4GLTEE_OK 
C4GLTEE_ERROR