52
Table 1: Programmable Switch Relative Register Table
Function
Description
BTN_STS
Reading this register returns the pin level status which is normal high active low.
0: Pin Level States Low.
1: Pin Level States High.
Table 1: Programmable Switch Register Mapping Table
Attribute
Register(I/O)
BitNum
Value
BTN_STS
R
0xA05(Note1)
4(Note2)
(Note3)
************************************************************************************
#define Word
BTN_STS //This parameter is represented from
Note1
#define Byte
BTN_STS_R //This parameter is represented 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
}
************************************************************************************
5.4 Programmable Switch
Summary of Contents for BNX-H81
Page 1: ...1 Security Board BNX H81 Always at the forefront of innovation User Manual ...
Page 7: ...7 Chapter 1 General Information ...
Page 11: ...11 Figure 1 1 Board Layout of BNX H81 1 4 Board Layout ...
Page 12: ...12 Chapter 2 Preparation ...
Page 16: ...16 2 5 Locations Of Jumpers and Connectors ...
Page 21: ...21 Chapter 3 Operation ...
Page 29: ...29 Chapter 4 BIOS Setup ...