Asus AAEON FWS-7520 User Manual page 130

Table of Contents

Advertisement

Sample Code:
*****************************************************************************************
#define Byte CPLD_SLAVE_ADDRESS //This parameter is represented from Note1
#define Byte OFFSET
*****************************************************************************************
bData = aaeonSmbusReadByte(CPLD_SLAVE_ADDRESS, OFFSET);
switch( LED_FLAG)
{
case 0:
{
//LED Off
//BIT2=0, BIT1=0, BIT0=0
bData = bData & 0xF8;
break;
}
case 1:
{
//Red LED On
//BIT2=0, BIT1=0, BIT0=1
bData = (bData & 0xF8) | 0x01;
break;
}
case 2:
{
//Red LED Blink
//BIT2=0, BIT1=1, BIT0=0
bData = (bData & 0xF8) | 0x02;
break;
}
case 3:
{
//Red LED Fast Blink
//BIT2=0, BIT1=1, BIT0=1
bData = (bData & 0xF8) | 0x03;
break;
}
case 4:
{
//Green LED On
//BIT2=1, BIT1=1, BIT0=1
Appendix C – Standard Firewall Platform Setting
//This parameter is represented from Note2
117

Advertisement

Table of Contents
loading

Table of Contents