ethapi.h

来自「enc28j60的驱动」· C头文件 代码 · 共 54 行

H
54
字号
/******************************************************************************
 *
 * Copyright:
 *    (C) 2000 - 2005 Embedded Artists AB
 *
 *****************************************************************************/

#ifndef _ETHAPI_H_
#define _ETHAPI_H_


/*****************************************************************************
 *
 * Description:
 *    Initialize the ethernet driver
 *
 * Params:
 *    [in] pEthAddr - the Ethernet (MAC) address. Must be 6 bytes long.
 *
 ****************************************************************************/
void ethIf_init(tU8* pEthAddr);

/*****************************************************************************
 *
 * Description:
 *    Send an ethernet packet. 
 *
 * Params:
 *    [in] pData - the data to send
 *    [in] len   - length of the data to send
 *
 ****************************************************************************/
void ethIf_send(tU8* pData, 
                tU16 len);

/*****************************************************************************
 *
 * Description:
 *    Poll the driver for incoming packets. 
 *
 * Params:
 *    [in/out] pBuf - allocated buffer to hold the incoming packet
 *    [in]     len  - length of the buffer
 *
 * Returns:
 *    Length of the received packet.
 *
 ****************************************************************************/
tU16 ethIf_poll(tU8* pBuf, 
                tU16 len);


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?