📄 ethernet_driver.h
字号:
// ------------------------------------------------------------------------
/// @file driver.h
/// @brief Ethernet device driver interface
/// @author Harald Axmann
/// @date 29.05.2006
// ------------------------------------------------------------------------
#ifndef __DRIVER_H__
#define __DRIVER_H__
#include "uip_arch.h"
#include "datatypes.h"
/**
* Send a frame over the ethernet
*
* This hardware driver function must be implemented by by the user.
* Note that the data will be unpacked.
*
* \param header the buffer containing the header
* \param data the buffer containing the user data
* \param size the total frame size in bytes (header and data)
*/
int ethernet_driver_send(const u8_t *header, const u8_t *data, uint16 size);
/**
* Read a frame from the ethernet
*
* This hardware driver function must be implemented by by the user.
* Note that the data must be stored in an unpacked format.
*
* \param data the buffer for storing the data
*/
uint16 ethernet_driver_read(u8_t *data);
#endif /* __DRIVER_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -