Sample Code - Asus Aaeon FWS-2273E7-A10-A10-00 User Manual

Desktop network appliance
Table of Contents

Advertisement

C.1.2 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:
Appendix C – Standard LAN Bypass Platform Setting
//This parameter is represented from Note2
92

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aaeon fws-2273

Table of Contents