Go to the documentation of this file.
31 #include "drv_digital_out.h"
32 #include "drv_digital_in.h"
56 #define LTEIOT6_CMD_AT "AT"
57 #define LTEIOT6_CMD_ATI "ATI"
59 #define LTEIOT6_CMD_CFUN "AT+CFUN"
60 #define LTEIOT6_CMD_CREG "AT+CREG"
61 #define LTEIOT6_CMD_CGDCONT "AT+CGDCONT"
62 #define LTEIOT6_CMD_CIMI "AT+CIMI"
63 #define LTEIOT6_CMD_CGATT "AT+CGATT"
64 #define LTEIOT6_CMD_CSQ "AT+CSQ"
65 #define LTEIOT6_CMD_COPS "AT+COPS"
83 #define LTEIOT6_SET_DESCRIPTION 0x00
85 #define LTEIOT6_MOBILE_OPERATOR_APN "vpi.iot"
91 #define DRV_BUFFER_SIZE 500
109 #define LTEIOT6_MAP_MIKROBUS( cfg, mikrobus ) \
110 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
111 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
112 cfg.pwr = MIKROBUS( mikrobus, MIKROBUS_AN ); \
113 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
114 cfg.rts = MIKROBUS( mikrobus, MIKROBUS_CS ); \
115 cfg.ri = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
116 cfg.cts = MIKROBUS( mikrobus, MIKROBUS_INT );
165 uart_data_bits_t data_bit;
166 uart_parity_t parity_bit;
167 uart_stop_bits_t stop_bit;
err_t lteiot6_generic_read(lteiot6_t *ctx, char *data_buf, uint16_t max_len)
LTE IoT 6 data reading function.
void lteiot6_set_sim_apn(lteiot6_t *ctx, char *sim_apn)
Set sim card APN.
err_t lteiot6_init(lteiot6_t *ctx, lteiot6_cfg_t *cfg)
LTE IoT 6 initialization function.
void lteiot6_send_cmd(lteiot6_t *ctx, char *cmd)
Send command function.
err_t lteiot6_generic_write(lteiot6_t *ctx, char *data_buf, uint16_t len)
LTE IoT 6 data writing function.
void lteiot6_cfg_setup(lteiot6_cfg_t *cfg)
LTE IoT 6 configuration object setup function.
LTE IoT 6 Click context object.
Definition: lteiot6.h:124
void lteiot6_set_pwr(lteiot6_t *ctx, uint8_t state)
Sets state of the PWR pin.
LTE IoT 6 Click configuration object.
Definition: lteiot6.h:148
#define DRV_BUFFER_SIZE
LTE IoT 6 driver buffer size.
Definition: lteiot6.h:90
void lteiot6_send_cmd_parameter_check(lteiot6_t *ctx, char *at_cmd_buf)
Check the command parameters.
uint8_t lteiot6_get_ri(lteiot6_t *ctx)
RI Pin Get function.
void lteiot6_set_rts(lteiot6_t *ctx, uint8_t state)
Sets state of the RTS pin.
void lteiot6_send_cmd_check(lteiot6_t *ctx, char *at_cmd_buf)
Check the sent command.
void lteiot6_power_on(lteiot6_t *ctx)
LTE IoT 6 power on.
void lteiot6_send_cmd_with_parameter(lteiot6_t *ctx, char *at_cmd_buf, char *param_buf)
Send command function with parameter.
uint8_t lteiot6_get_cts(lteiot6_t *ctx)
CTS Pin Get function.
void lteiot6_send_text_message(lteiot6_t *ctx, char *phone_number, char *message_context)
LTE IoT 6 send text message.
void lteiot6_reset(lteiot6_t *ctx)
LTE IoT 6 power on.
void lteiot6_set_rst(lteiot6_t *ctx, uint8_t state)
Sets state of the RST pin.