Committer:
Simon Cooksey
Date:
Thu Nov 17 16:43:53 2016 +0000
Revision:
0:fb7af294d5d9
Initial commit

Who changed what in which revision?

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