Sample Code - Asus AAEON FWS-2365 User Manual

Desktop network appliance
Table of Contents

Advertisement

B.1.3

Sample Code

*************************************************************
#define Byte CPLD_SLAVE_ADDRESS //This parameter is represented
from Note1
#define Byte OFFSET
from Note2
*************************************************************
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:
Appendix B – Hardware and LAN Bypass Programming
//This parameter is represented
87

Advertisement

Table of Contents
loading

Table of Contents