ethernet_driver.h

来自「CS8900A driver source code project file」· C头文件 代码 · 共 37 行

H
37
字号
// ------------------------------------------------------------------------
/// @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 + =
减小字号Ctrl + -
显示快捷键?