Go to the documentation of this file.
35 #include "drv_digital_out.h"
36 #include "drv_digital_in.h"
59 #define LTEIOT9_CMD_AT "AT"
60 #define LTEIOT9_CMD_ATI "ATI"
61 #define LTEIOT9_CMD_CGMR "AT+CGMR"
62 #define LTEIOT9_CMD_CFUN "AT+CFUN"
63 #define LTEIOT9_CMD_CREG "AT+CREG"
64 #define LTEIOT9_CMD_CEREG "AT+CEREG"
65 #define LTEIOT9_CMD_CGDCONT "AT+CGDCONT"
66 #define LTEIOT9_CMD_CIMI "AT+CIMI"
67 #define LTEIOT9_CMD_CGATT "AT+CGATT"
68 #define LTEIOT9_CMD_CSQ "AT+CSQ"
69 #define LTEIOT9_CMD_CESQ "AT+CESQ"
70 #define LTEIOT9_CMD_COPS "AT+COPS"
71 #define LTEIOT9_CMD_URAT "AT+URAT"
72 #define LTEIOT9_CMD_UBANDMASK "AT+UBANDMASK"
73 #define LTEIOT9_CMD_URATCONF "AT+URATCONF"
74 #define LTEIOT9_CMD_UAUTHREQ "AT+UAUTHREQ"
75 #define LTEIOT9_CMD_UUICC "AT+UUICC"
76 #define LTEIOT9_CMD_UCGED "AT+UCGED"
77 #define LTEIOT9_CMD_UCELLINFO "AT+UCELLINFO"
78 #define LTEIOT9_CMD_UANTR "AT+UANTR"
79 #define LTEIOT9_CMD_CMGF "AT+CMGF"
98 #define LTEIOT9_GNSS_GPGGA "GPGGA"
99 #define LTEIOT9_GNSS_START '$'
100 #define LTEIOT9_GNSS_SEPARATOR ','
106 #define LTEIOT9_GPGGA_LATITUDE 2
107 #define LTEIOT9_GPGGA_LONGITUDE 4
108 #define LTEIOT9_GPGGA_ALTITUDE 9
114 #define LTEIOT9_SYSSTART "^SYSSTART"
120 #define LTEIOT9_RSP_OK "OK"
121 #define LTEIOT9_RSP_ERROR "ERROR"
128 #define DRV_TX_BUFFER_SIZE 100
129 #define DRV_RX_BUFFER_SIZE 500
147 #define LTEIOT9_MAP_MIKROBUS( cfg, mikrobus ) \
148 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
149 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
150 cfg.smi = MIKROBUS( mikrobus, MIKROBUS_AN ); \
151 cfg.on = MIKROBUS( mikrobus, MIKROBUS_RST ); \
152 cfg.cts = MIKROBUS( mikrobus, MIKROBUS_CS ); \
153 cfg.rts = MIKROBUS( mikrobus, MIKROBUS_INT );
200 uart_data_bits_t data_bit;
201 uart_parity_t parity_bit;
202 uart_stop_bits_t stop_bit;
void lteiot9_set_sim_apn(lteiot9_t *ctx, char *sim_apn)
Set sim card APN.
#define DRV_TX_BUFFER_SIZE
LTE IoT 9 driver buffer size.
Definition: lteiot9.h:127
void lteiot9_send_cmd_parameter_check(lteiot9_t *ctx, char *at_cmd_buf)
Check the command parameters.
err_t lteiot9_generic_read(lteiot9_t *ctx, char *data_buf, uint16_t max_len)
LTE IoT 9 data reading function.
void lteiot9_send_cmd_with_parameter(lteiot9_t *ctx, char *at_cmd_buf, char *param_buf)
Send command function with parameter.
LTE IoT 9 Click context object.
Definition: lteiot9.h:161
void lteiot9_send_cmd_check(lteiot9_t *ctx, char *at_cmd_buf)
Check the sent command.
lteiot9_return_value_t
LTE IoT 9 Click return value data.
Definition: lteiot9.h:209
Definition: lteiot9.h:214
Definition: lteiot9.h:211
void lteiot9_set_pin_on(lteiot9_t *ctx, uint8_t state)
Set ON pin state.
err_t lteiot9_generic_write(lteiot9_t *ctx, char *data_buf, uint16_t len)
LTE IoT 9 data writing function.
err_t lteiot9_init(lteiot9_t *ctx, lteiot9_cfg_t *cfg)
LTE IoT 9 initialization function.
void lteiot9_send_text_message(lteiot9_t *ctx, char *phone_number, char *message_context)
LTE IoT 9 send text message.
LTE IoT 9 Click configuration object.
Definition: lteiot9.h:184
Definition: lteiot9.h:213
void lteiot9_cfg_setup(lteiot9_cfg_t *cfg)
LTE IoT 9 configuration object setup function.
#define DRV_RX_BUFFER_SIZE
Definition: lteiot9.h:128
Definition: lteiot9.h:212
void lteiot9_send_cmd(lteiot9_t *ctx, char *cmd)
Send command function.
err_t lteiot9_default_cfg(lteiot9_t *ctx)
LTE IoT 9 default configuration function.