ltecat1eu 2.0.0.0
ltecat1eu.h File Reference

This file contains API for LTE Cat.1-EU 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  ltecat1eu_t
 LTE Cat.1-EU Click context object. More...
 
struct  ltecat1eu_cfg_t
 LTE Cat.1-EU Click configuration object. More...
 

Macros

#define LTECAT1EU_CMD_AT   "AT"
 LTE Cat.1-EU description setting.
 
#define LTECAT1EU_CMD_ATI   "ATI"
 
#define LTECAT1EU_CMD_CGMR   "AT+CGMR"
 
#define LTECAT1EU_CMD_CFUN   "AT+CFUN"
 
#define LTECAT1EU_CMD_CREG   "AT+CREG"
 
#define LTECAT1EU_CMD_CEREG   "AT+CEREG"
 
#define LTECAT1EU_CMD_CGDCONT   "AT+CGDCONT"
 
#define LTECAT1EU_CMD_CIMI   "AT+CIMI"
 
#define LTECAT1EU_CMD_CGATT   "AT+CGATT"
 
#define LTECAT1EU_CMD_CSQ   "AT+CSQ"
 
#define LTECAT1EU_CMD_CESQ   "AT+CESQ"
 
#define LTECAT1EU_CMD_COPS   "AT+COPS"
 
#define DRV_RX_BUFFER_SIZE   500
 LTE Cat.1-EU driver buffer size.
 
#define DRV_TX_BUFFER_SIZE   100
 
#define LTECAT1EU_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  ltecat1eu_return_value_t { LTECAT1EU_OK = 0 , LTECAT1EU_ERROR = -1 }
 LTE Cat.1-EU Click return value data. More...
 

Functions

void ltecat1eu_cfg_setup (ltecat1eu_cfg_t *cfg)
 LTE Cat.1-EU configuration object setup function.
 
err_t ltecat1eu_init (ltecat1eu_t *ctx, ltecat1eu_cfg_t *cfg)
 LTE Cat.1-EU initialization function.
 
void ltecat1eu_generic_write (ltecat1eu_t *ctx, char *data_buf, uint16_t len)
 LTE Cat.1-EU data writing function.
 
err_t ltecat1eu_generic_read (ltecat1eu_t *ctx, char *data_buf, uint16_t max_len)
 LTE Cat.1-EU data reading function.
 
void ltecat1eu_power_on (ltecat1eu_t *ctx)
 LTE Cat.1-EU module power on.
 
void ltecat1eu_set_rst (ltecat1eu_t *ctx, uint8_t state)
 Sets state of the RST pin.
 
void ltecat1eu_set_rts (ltecat1eu_t *ctx, uint8_t state)
 Sets state of the RTS pin.
 
uint8_t ltecat1eu_get_cts (ltecat1eu_t *ctx)
 CTS Pin Get function.
 
void ltecat1eu_send_cmd (ltecat1eu_t *ctx, char *cmd)
 Send command function.
 
void ltecat1eu_send_cmd_with_parameter (ltecat1eu_t *ctx, char *at_cmd_buf, char *param_buf)
 Send command function with parameter.
 
void ltecat1eu_send_cmd_check (ltecat1eu_t *ctx, char *at_cmd_buf)
 Check the sent command.
 
void ltecat1eu_send_cmd_parameter_check (ltecat1eu_t *ctx, char *at_cmd_buf)
 Check the command parameters.
 
void ltecat1eu_set_sim_apn (ltecat1eu_t *ctx, char *sim_apn)
 Set sim card APN.
 
void ltecat1eu_send_text_message (ltecat1eu_t *ctx, char *phone_number, char *message_context)
 LTE Cat.1-EU send text message.
 

Detailed Description

This file contains API for LTE Cat.1-EU Click Driver.

Enumeration Type Documentation

◆ ltecat1eu_return_value_t

LTE Cat.1-EU Click return value data.

Predefined enum values for driver return values.

Enumerator
LTECAT1EU_OK 
LTECAT1EU_ERROR