Go to the documentation of this file.
35 #include "drv_digital_out.h"
36 #include "drv_digital_in.h"
59 #define LTEIOT4_CMD_AT "AT"
60 #define LTEIOT4_CMD_MODULE_VERSION "AT+CGMM"
61 #define LTEIOT4_CMD_FW_VERSION "AT+CGMR"
62 #define LTEIOT4_CMD_FLIGHT_MODE "AT+CFUN=4"
63 #define LTEIOT4_CMD_NBIOT_MODE "AT%XSYSTEMMODE=0,1,0,0"
64 #define LTEIOT4_CMD_ENABLE_NET_SMS "AT+CIND=1,0,1"
65 #define LTEIOT4_CMD_FULL_FUNCTION "AT+CFUN=1"
66 #define LTEIOT4_CMD_AUTO_NET_SRC "AT+COPS=0"
67 #define LTEIOT4_CMD_SEARCH_NET "AT+CEREG=2"
68 #define LTEIOT4_CMD_SIM_TEST "AT+CIMI"
69 #define LTEIOT4_CMD_CHECK_CONNECTION "AT+CGATT?"
70 #define LTEIOT4_CMD_CHECK_REGISTARTION "AT+CEREG?"
71 #define LTEIOT4_CMD_SIGNAL_QUALITY "AT+CESQ"
72 #define LTEIOT4_CMD_SET_DUMMY_CLOCK "AT+CCLK=\"20/12/31,23:59:39+01\""
73 #define LTEIOT4_CMD_CHECK_TEMPERATURE "AT%XTEMP?"
74 #define LTEIOT4_CMD_CHECK_CLOCK "AT+CCLK?"
81 #define DRV_BUFFER_SIZE 500
99 #define LTEIOT4_MAP_MIKROBUS( cfg, mikrobus ) \
100 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
101 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
102 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
142 uart_data_bits_t data_bit;
143 uart_parity_t parity_bit;
144 uart_stop_bits_t stop_bit;
void lteiot4_cfg_setup(lteiot4_cfg_t *cfg)
LTE IoT 4 configuration object setup function.
err_t lteiot4_generic_read(lteiot4_t *ctx, char *data_buf, uint16_t max_len)
LTE IoT 4 data reading function.
err_t lteiot4_init(lteiot4_t *ctx, lteiot4_cfg_t *cfg)
LTE IoT 4 initialization function.
void lteiot4_set_sim_apn(lteiot4_t *ctx, char *sim_apn)
Set sim card APN.
void lteiot4_set_rst(lteiot4_t *ctx, uint8_t state)
Sets state of the rst pin setting.
#define DRV_BUFFER_SIZE
LTE IoT 4 driver buffer size.
Definition: lteiot4.h:80
LTE IoT 4 Click context object.
Definition: lteiot4.h:110
LTE IoT 4 Click configuration object.
Definition: lteiot4.h:128
err_t lteiot4_generic_write(lteiot4_t *ctx, char *data_buf, uint16_t len)
LTE IoT 4 data writing function.
err_t lteiot4_default_cfg(lteiot4_t *ctx)
LTE IoT 4 default configuration function.
void lteiot4_send_cmd(lteiot4_t *ctx, char *cmd)
Send command function.