📄 ax88796dev.h
字号:
/*****************************************************************************
* Module Name: Realtek 8019AS Driver Interface for uIP-AVR Port
*
* Created By: Louis Beaudoin (www.embedded-creations.com)
*
* Original Release: September 21, 2002
*
* Module Description:
* Provides three functions to interface with the Realtek 8019AS driver
* These functions can be called directly from the main uIP control loop
* to send packets from uip_buf and uip_appbuf, and store incoming packets to
* uip_buf
*
* September 30, 2002 - Louis Beaudoin
* Modifications required to handle the packet receive function changes in
* rtl8019.c. There is no longer a need to poll for an empty buffer or
* an overflow.
* Added support for the Imagecraft Compiler
*
*****************************************************************************/
#ifndef AX88796DEV_H
#define AX88796DEV_H
#include "uip.h"
#include "ax88796.h"
/*****************************************************************************
* RTL8019dev_init()
* Created By: Louis Beaudoin
* Date: September 21, 2002
* Description: Power-up initialization of the RTL8019
*****************************************************************************/
void ax88796devInit(void);
/*****************************************************************************
* RTL8019dev_send()
* Created By: Louis Beaudoin
* Date: September 21, 2002
* Description: Sends the packet contained in uip_buf and uip_appdata over
* the network
*****************************************************************************/
void ax88796devSend(void);
/*****************************************************************************
* unsigned char/int RTL8019dev_poll()
* Returns: Length of the packet retreived, or zero if no packet retreived
* Created By: Louis Beaudoin
* Date: September 21, 2002
* Description: Polls the RTL8019 looking for an overflow condition or a new
* packet in the receive buffer. If a new packet exists and
* will fit in uip_buf, it is retreived, and the length is
* returned. A packet bigger than the buffer is discarded
*****************************************************************************/
#if UIP_BUFSIZE > 255
unsigned int ax88796devPoll(void);
#else
unsigned char ax88796devPoll(void);
#endif /* UIP_BUFSIZE > 255 */
#endif /* __RTL8019DEV_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -