📄 arp.h
字号:
/**
* \addtogroup arp
* @{
*/
/**
* \file
* \brief ARP & RARP layer configuration header file
* \author glyin <glyin@fameg.com>
*/
/*
******************************************************************************
*
Copyright (c) 2006 FameG Shanghai, Inc. All rights reserved.
*
This is unpublished proprietary source code of FameG Shanghai, Inc.
*
The copyright notice above does not evidence any actual or intended
*
publication of such source code.
******************************************************************************
*/
/*
******************************************************************************
*
Project: T4 L4MCU FPGA verification
*
Filename: arp.h
*
Date: 28/02/06
*
Purpose: ARP functions for L4MCU (Keil C Compiler)
*
Author: Guanglei Yin
******************************************************************************
*/
#ifndef __ARP_H__
#define __ARP_H__
#include "kernel/system.h"
/*****************************************************************************
* CONSTANT DEFINES *
*****************************************************************************/
/*****************************************************************************
* MACROS *
*****************************************************************************/
/*!\brief Get system interrupt status.
*/
#define GET_SYS_INT_STATUS() inb(SYS_SYS_INTSTAT)
/*!\brief Find host non-exist channel.
*/
#define FIND_HOSTNONEXIST() inb(ARP_HOSTNEX_CH)
/*****************************************************************************
* DATA TYPES *
*****************************************************************************/
/*****************************************************************************
* FUNCTIONS DECLARATION *
*****************************************************************************/
/* ARP function */
extern void arp_Init(void); /* Initialize ARP module */
extern void arp_Clear(void); /* Clear ARP table */
extern void arp_SendGratuitous(void); /* Send Gratuitous ARP */
extern void arp_SetGratCounter(UINT8 counter); /* Set Gratuitous ARP polling counter value */
extern void arp_SetEntryTimer(UINT8 time); /* Set ARP entry timer value */
extern void arp_SetPollCounter(UINT8 counter); /* Set ARP entry polling counter value */
extern void arp_SetPollPeriod(UINT8 period); /* Set ARP entry polling period value */
extern void arp_SetPktTimeout(UINT8 time); /* Set ARP packet timeout value */
/* RARP function */
#if INCLUDE_RARP_CONTROL
extern void rarp_SendRequest(void); /* RARP send request packet */
extern void rarp_SetTimeout(UINT8 timeout); /* Set RARP timeout value */
#endif
/* System interrupt function */
extern void sys_IntService(void); /* system interrupt service handler */
extern void register_sys_interrupt(UINT8 type, int_function handler); /* initialize system interrupt handler */
/*****************************************************************************
* GLOBAL VARIABLES DECLARATION *
*****************************************************************************/
extern BOOL int_flag_ip_cft;
#endif /*__ARP_H__*/
/** @} */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -