Mistake on this page?
Report an issue in GitHub or email us
rza1_eth.h
1 /* Copyright (c) 2020 Renesas Electronics Corporation.
2  * SPDX-License-Identifier: Apache-2.0
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 #ifndef MBED_ETHERNET_API_H
17 #define MBED_ETHERNET_API_H
18 
19 #include "device.h"
20 #include "platform/mbed_toolchain.h"
21 
22 #if DEVICE_ETHERNET
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 // Connection constants
29 int rza1_ethernet_init(void);
30 void rza1_ethernet_free(void);
31 
32 // write size bytes from data to ethernet buffer
33 // return num bytes written
34 // or -1 if size is too big
35 int rza1_ethernet_write(const char *data, int size);
36 
37 // send ethernet write buffer, returning the packet size sent
38 int rza1_ethernet_send(void);
39 
40 // receive from ethernet buffer, returning packet size, or 0 if no packet
41 int rza1_ethernet_receive(void);
42 
43 // read size bytes in to data, return actual num bytes read (0..size)
44 // if data == NULL, throw the bytes away
45 int rza1_ethernet_read(char *data, int size);
46 
47 // get the ethernet address
48 void rza1_ethernet_address(char *mac);
49 
50 // see if the link is up
51 int rza1_ethernet_link(void);
52 
53 // force link settings
54 void rza1_ethernet_set_link(int speed, int duplex);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif
61 
62 #endif
63 
64 
65 /** @}*/
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.