mbed-os for GR-LYCHEE

Dependents:   mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more

Committer:
dkato
Date:
Fri Feb 02 05:42:23 2018 +0000
Revision:
0:f782d9c66c49
mbed-os for GR-LYCHEE

Who changed what in which revision?

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