42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
66#define WIFI11_MAP_MIKROBUS( cfg, mikrobus ) \
67 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
68 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
69 cfg.en = MIKROBUS( mikrobus, MIKROBUS_RST ); \
70 cfg.gp1 = MIKROBUS( mikrobus, MIKROBUS_INT ); \
71 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS )
78#define WIFI11_RETVAL uint8_t
81#define WIFI11_INIT_ERROR 0xFF
88#define WIFI11_CMD_AT "AT"
89#define WIFI11_CMD_ATS "ATS?"
90#define WIFI11_CMD_ATSR "ATSR"
91#define WIFI11_CMD_ATSV "ATSV"
92#define WIFI11_CMD_ATSP "ATSP"
93#define WIFI11_CMD_ATSE "ATSE"
94#define WIFI11_CMD_ATSY "ATSY"
95#define WIFI11_CMD_ATSU "ATSU"
96#define WIFI11_CMD_ATSW "ATSW"
97#define WIFI11_CMD_ATSO "ATSO"
98#define WIFI11_CMD_ATSC "ATSC"
99#define WIFI11_CMD_ATSG "ATSG"
106#define WIFI11_CMD_ATPW "ATPW"
107#define WIFI11_CMD_ATPN "ATPN"
108#define WIFI11_CMD_ATWD "ATWD"
109#define WIFI11_CMD_ATWS "ATWS"
110#define WIFI11_CMD_ATPA "ATPA"
111#define WIFI11_CMD_ATW "ATW?"
112#define WIFI11_CMD_ATPH "ATPH"
113#define WIFI11_CMD_ATPE "ATPE"
114#define WIFI11_CMD_ATPF "ATPF"
115#define WIFI11_CMD_ATPG "ATPG"
116#define WIFI11_CMD_ATPM "ATPM"
117#define WIFI11_CMD_ATWQ "ATWQ"
124#define WIFI11_CMD_ATP0 "ATP0"
125#define WIFI11_CMD_ATPS "ATPS"
126#define WIFI11_CMD_ATPC "ATPC"
127#define WIFI11_CMD_ATPD "ATPD"
128#define WIFI11_CMD_ATPT "ATPT"
129#define WIFI11_CMD_ATPR "ATPR"
130#define WIFI11_CMD_ATPK "ATPK"
131#define WIFI11_CMD_ATPI "ATPI"
132#define WIFI11_CMD_ATPP "ATPP"
133#define WIFI11_CMD_ATPU "ATPU"
134#define WIFI11_CMD_ATPL "ATPL"
141#define WIFI11_TCP_MODE 0
142#define WIFI11_UDP_MODE 1
149#define DRV_RX_BUFFER_SIZE 500
150#define DRV_TX_BUFFER_SIZE 500
#define DRV_RX_BUFFER_SIZE
Definition wifi11.h:149
#define DRV_TX_BUFFER_SIZE
Definition wifi11.h:150
#define WIFI11_RETVAL
Definition wifi11.h:78
void wifi11_create_tcp_udp_server(wifi11_t *ctx, uint8_t mode, uint16_t port)
Create TCP/UDP server function.
void wifi11_connect_to_ap(wifi11_t *ctx, char *ssid, char *password)
Connect to AP function.
WIFI11_RETVAL wifi11_init(wifi11_t *ctx, wifi11_cfg_t *cfg)
Initialization function.
int32_t wifi11_generic_read(wifi11_t *ctx, char *data_buf, uint16_t max_len)
Generic read function.
void wifi11_send_cmd_with_parameter(wifi11_t *ctx, char *at_cmd_buf, char *param_buf)
Send command function with parameter.
void wifi11_generic_write(wifi11_t *ctx, char *data_buf, uint16_t len)
Generic write function.
void wifi11_send_cmd(wifi11_t *ctx, char *cmd)
Send command function.
void wifi11_cfg_setup(wifi11_cfg_t *cfg)
Config Object Initialization function.
void wifi11_reset_device(wifi11_t *ctx)
Device reset function.
Click configuration structure definition.
Definition wifi11.h:183
uint32_t baud_rate
Definition wifi11.h:197
bool uart_blocking
Definition wifi11.h:198
uart_data_bits_t data_bit
Definition wifi11.h:199
pin_name_t tx_pin
Definition wifi11.h:187
pin_name_t rx_pin
Definition wifi11.h:186
uart_stop_bits_t stop_bit
Definition wifi11.h:201
pin_name_t en
Definition wifi11.h:191
pin_name_t gp1
Definition wifi11.h:193
uart_parity_t parity_bit
Definition wifi11.h:200
pin_name_t cs
Definition wifi11.h:192
Click ctx object definition.
Definition wifi11.h:163
digital_out_t cs
Definition wifi11.h:167
uart_t uart
Definition wifi11.h:172
digital_out_t gp1
Definition wifi11.h:168
digital_out_t en
Definition wifi11.h:166