Sample Code - Asus AAEON FWS-2365 User Manual

Desktop network appliance
Table of Contents

Advertisement

B.3.3

Sample Code

*************************************************************
#define Word BTN_STS
Note1
#define Byte BTN_STS_R
from Note2
*************************************************************
Byte GET_Value (Word IoAddr, Byte BitNum,Byte Value){
BYTE TmpValue;
TmpValue = inportb (IoAddr);
return (TmpValue & (1 << BitNum))
}
*************************************************************
VOID Main(){
Byte RstBtn;
RstBtn = GET_Value (BTN_STS, BTN_STS_R); // Active Low
}
*************************************************************
Appendix B – Hardware and LAN Bypass Programming
//This parameter is represented from
//This parameter is represented
95

Advertisement

Table of Contents
loading

Table of Contents