Turn down WIFI_API_DEBUG_LOG in wifi_api.h

Fork of WIFI_API_32kRAM by Delta

Committer:
wgd8700
Date:
Wed Sep 30 03:49:26 2015 +0000
Revision:
12:be75c06cb491
Child:
19:a11db6055532
# Highlight of this release; * Add WIFI BLE coexistence ; * Support new module HW revision (EVB Ver.02)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wgd8700 12:be75c06cb491 1
wgd8700 12:be75c06cb491 2
wgd8700 12:be75c06cb491 3 #ifndef WIFI_API_H
wgd8700 12:be75c06cb491 4 #define WIFI_API_H
wgd8700 12:be75c06cb491 5
wgd8700 12:be75c06cb491 6 #include <stdbool.h>
wgd8700 12:be75c06cb491 7 #include <stdint.h>
wgd8700 12:be75c06cb491 8
wgd8700 12:be75c06cb491 9 /* @file
wgd8700 12:be75c06cb491 10 * @brief Wi-Fi Connection API for NNN40.
wgd8700 12:be75c06cb491 11 *
wgd8700 12:be75c06cb491 12 *
wgd8700 12:be75c06cb491 13 * @defgroup lib_driver_spi_master Software controlled SPI Master driver
wgd8700 12:be75c06cb491 14 * @{
wgd8700 12:be75c06cb491 15 * @ingroup nrf_drivers
wgd8700 12:be75c06cb491 16 * @brief Software controlled SPI Master driver.
wgd8700 12:be75c06cb491 17 *
wgd8700 12:be75c06cb491 18 * Supported features:
wgd8700 12:be75c06cb491 19 * - Operate two SPI masters independently or in parallel.
wgd8700 12:be75c06cb491 20 * - Transmit and Receive given size of data through SPI.
wgd8700 12:be75c06cb491 21 * - configure each SPI module separately through @ref spi_master_init.
wgd8700 12:be75c06cb491 22 */
wgd8700 12:be75c06cb491 23
wgd8700 12:be75c06cb491 24 #define SSID_MAX_LENGTH 32
wgd8700 12:be75c06cb491 25 #define SCAN_SSID_MAX_NUM 20
wgd8700 12:be75c06cb491 26
wgd8700 12:be75c06cb491 27 #define ticker_internal 60//Tsungt, 2015/09/21, it was 60, if set to 30 or 20 somehow receive_all will go wrong (return 0)
wgd8700 12:be75c06cb491 28 #define wait_ms_internal 1
wgd8700 12:be75c06cb491 29
wgd8700 12:be75c06cb491 30 /**
wgd8700 12:be75c06cb491 31 * Wi-Fi Init
wgd8700 12:be75c06cb491 32 */
wgd8700 12:be75c06cb491 33 int wifi_init(void);
wgd8700 12:be75c06cb491 34 int wifi_apConnect(void);
wgd8700 12:be75c06cb491 35 void wifi_ssid_pw_set(uint8_t* SSID, uint8_t* PW, uint8_t priority);
wgd8700 12:be75c06cb491 36 uint8_t wifi_scan(void);
wgd8700 12:be75c06cb491 37 int wifi_connect(unsigned int timeout_ms);
wgd8700 12:be75c06cb491 38 int wifi_static_ip_set(const char * ip, const char * netmask, const char * gateway);
wgd8700 12:be75c06cb491 39 int wifi_disconnect(void);
wgd8700 12:be75c06cb491 40
wgd8700 12:be75c06cb491 41 int wifi_UDP_server_init(const int port);
wgd8700 12:be75c06cb491 42 int wifi_TCP_server_init(const int port);
wgd8700 12:be75c06cb491 43 int wifi_UDP_client_init(void);
wgd8700 12:be75c06cb491 44 int wifi_TCP_client_init(const char *ipv4_addr, const int port, bool new_socket);
wgd8700 12:be75c06cb491 45 int wifi_send_UDP(char *data, int length, uint8_t cid, const char *ipv4_addr, const int port);
wgd8700 12:be75c06cb491 46 int wifi_send_TCP(char *data, uint8_t cid);
wgd8700 12:be75c06cb491 47
wgd8700 12:be75c06cb491 48
wgd8700 12:be75c06cb491 49
wgd8700 12:be75c06cb491 50
wgd8700 12:be75c06cb491 51 #ifdef __cplusplus
wgd8700 12:be75c06cb491 52 extern "C" {
wgd8700 12:be75c06cb491 53 #endif
wgd8700 12:be75c06cb491 54 void start_socket_routine(void);
wgd8700 12:be75c06cb491 55 int wifi_receive_UDP_callback(uint8_t *data, uint8_t cid);
wgd8700 12:be75c06cb491 56 int wifi_receive_TCP_callback(uint8_t *data, uint8_t cid);
wgd8700 12:be75c06cb491 57 void Socket_Close_All(void);
wgd8700 12:be75c06cb491 58 int wifi_ipconfig(unsigned int timeout_ms);
wgd8700 12:be75c06cb491 59
wgd8700 12:be75c06cb491 60 #ifdef __cplusplus
wgd8700 12:be75c06cb491 61 }
wgd8700 12:be75c06cb491 62 #endif
wgd8700 12:be75c06cb491 63
wgd8700 12:be75c06cb491 64 #endif
wgd8700 12:be75c06cb491 65