Mistake on this page?
Report an issue in GitHub or email us
EthernetInterface.h
1 /* LWIP implementation of NetworkInterfaceAPI
2  * Copyright (c) 2015 ARM Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef ETHERNET_INTERFACE_H
18 #define ETHERNET_INTERFACE_H
19 
20 #include "nsapi.h"
21 #include "EMACInterface.h"
22 
23 
24 /** Implementation of the NetworkStack for an EMAC-based Ethernet driver.
25  */
27 public:
28  /** Create an EMAC-based Ethernet interface.
29  *
30  * The default arguments obtain the default EMAC, which will be target-
31  * dependent (and the target may have some JSON option to choose which
32  * is the default, if there are multiple). The default stack is configured
33  * by JSON option nsapi.default-stack.
34  *
35  * Due to inability to return errors from the constructor, no real
36  * work is done until the first call to connect().
37  *
38  * @param emac Reference to EMAC to use.
39  * @param stack Reference to onboard-network stack to use.
40  */
43 };
44 
45 #endif
EMACInterface class Implementation of the NetworkInterface for an EMAC-based driver.
Definition: EMACInterface.h:38
EthernetInterface(EMAC &emac=EMAC::get_default_instance(), OnboardNetworkStack &stack=OnboardNetworkStack::get_default_instance())
Create an EMAC-based Ethernet interface.
mbed OS API for onboard IP stack abstraction
static EMAC & get_default_instance()
Return the default on-board EMAC.
This interface should be used to abstract low level access to networking hardware All operations rece...
Definition: EMAC.h:32
Implementation of the NetworkStack for an EMAC-based Ethernet driver.
static OnboardNetworkStack & get_default_instance()
Return the default on-board network stack.
Common interface between Ethernet hardware.
Definition: EthInterface.h:29
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.