1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef MBED_ETHERNET_API_H
- #define MBED_ETHERNET_API_H
- #include "device.h"
- #if DEVICE_ETHERNET
- #ifdef __cplusplus
- extern "C" {
- #endif
- int ethernet_init(void);
- void ethernet_free(void);
- int ethernet_write(const char *data, int size);
- int ethernet_send(void);
- int ethernet_receive(void);
- int ethernet_read(char *data, int size);
- void ethernet_address(char *mac);
- int ethernet_link(void);
- void ethernet_set_link(int speed, int duplex);
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif
|