LWIPBP3595Interface library for mbed-os.

Dependents:   LWIPBP3595Interface_STA_for_mbed-os

Fork of LWIPBP3595Interface by Rohm

Committer:
dkato
Date:
Tue Mar 28 09:50:17 2017 +0000
Revision:
6:993197aaf5a4
Parent:
5:d03489ec5033
Fixed static IP address setting.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dkato 2:c7e325599570 1 /* LWIP implementation of NetworkInterfaceAPI
dkato 2:c7e325599570 2 * Copyright (c) 2015 ARM Limited
dkato 2:c7e325599570 3 *
dkato 2:c7e325599570 4 * Licensed under the Apache License, Version 2.0 (the "License");
dkato 2:c7e325599570 5 * you may not use this file except in compliance with the License.
dkato 2:c7e325599570 6 * You may obtain a copy of the License at
dkato 2:c7e325599570 7 *
dkato 2:c7e325599570 8 * http://www.apache.org/licenses/LICENSE-2.0
dkato 2:c7e325599570 9 *
dkato 2:c7e325599570 10 * Unless required by applicable law or agreed to in writing, software
dkato 2:c7e325599570 11 * distributed under the License is distributed on an "AS IS" BASIS,
dkato 2:c7e325599570 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
dkato 2:c7e325599570 13 * See the License for the specific language governing permissions and
dkato 2:c7e325599570 14 * limitations under the License.
dkato 2:c7e325599570 15 */
dkato 2:c7e325599570 16
dkato 2:c7e325599570 17 #ifndef LWIP_WIFI_STACK_H
dkato 2:c7e325599570 18 #define LWIP_WIFI_STACK_H
dkato 2:c7e325599570 19
dkato 2:c7e325599570 20 #include "nsapi.h"
dkato 3:2ff2514e4fca 21 #include "emac_api.h"
dkato 2:c7e325599570 22
dkato 2:c7e325599570 23 #ifdef __cplusplus
dkato 2:c7e325599570 24 extern "C" {
dkato 2:c7e325599570 25 #endif
dkato 2:c7e325599570 26
dkato 3:2ff2514e4fca 27 // Access to lwip through the nsapi
dkato 5:d03489ec5033 28 nsapi_error_t mbed_lwip_wifi_init(emac_interface_t *emac);
dkato 5:d03489ec5033 29 nsapi_error_t mbed_lwip_wifi_bringup(bool dhcp, const char *ip, const char *netmask, const char *gw);
dkato 5:d03489ec5033 30 nsapi_error_t mbed_lwip_wifi_bringdown(void);
dkato 2:c7e325599570 31
dkato 3:2ff2514e4fca 32 const char *mbed_lwip_wifi_get_mac_address(void);
dkato 3:2ff2514e4fca 33 char *mbed_lwip_wifi_get_ip_address(char *buf, int buflen);
dkato 3:2ff2514e4fca 34 char *mbed_lwip_wifi_get_netmask(char *buf, int buflen);
dkato 3:2ff2514e4fca 35 char *mbed_lwip_wifi_get_gateway(char *buf, int buflen);
dkato 2:c7e325599570 36
dkato 2:c7e325599570 37 extern nsapi_stack_t lwip_wifi_stack;
dkato 2:c7e325599570 38
dkato 2:c7e325599570 39
dkato 2:c7e325599570 40 #ifdef __cplusplus
dkato 2:c7e325599570 41 }
dkato 2:c7e325599570 42 #endif
dkato 2:c7e325599570 43
dkato 2:c7e325599570 44 #endif