Sample Code - Asus AAEON FWS-8600 User Manual

Network appliance
Table of Contents

Advertisement

Table 3 : LAN Bypass relative register mapping table
Attribute
LAN_ID3
R/W
LAN_ID2
R/W
LAN_ID1
R/W
LAN_ID0
R/W
PWR_ON
R/W
PWR_OFF
R/W
WDT_EN
R/W
ACT_EN
R/W
B.2.2

Sample Code

************************************************************
#define Byte CPLD_SLAVE_ADDRESS
represented from Note1
#define Byte OFFSET
from Note2
************************************************************
// Select Lan Pair
BYTE bLanSel = LAN_PAIR;
BYTE bData = SmbusReadByte(CPLD_SLAVE_ADDRESS, OFFSET);
// Set Reg01h bit3
if(bLanSel & 0x08)
bData = bData | 0x08;
else
bData = bData & 0xF7;
// Set Reg01h bit2
if(bLanSel & 0x04)
bData = bData | 0x04;
else
bData = bData & 0xFB;
// Set Reg01h bit1
if(bLanSel & 0x02)
bData = bData | 0x02;
else
bData = bData & 0xFD;
// Set Reg01h bit0
Appendix B – Standard LAN Bypass Platform Settings
CPLD Slave Address 0x90 (Note1)
Offset(SMBUS)
0x01(Note2)
0x01(Note2)
0x01(Note2)
0x01(Note2)
0x01(Note2)
0x01(Note2)
0x01(Note2)
0x01(Note2)
//This parameter is represented
BitNum
3
2
1
0
6
5
4
7
//This parameter is
Value
(Table 1)
(Table 1)
(Table 1)
(Table 1)
(Table 2)
(Table 2)
(Table 2)
(Table 2)
95

Advertisement

Table of Contents
loading

Table of Contents