62
FWA8408 & FWA8406 User Manual
3. DIO Sample Code: The file NCT5523D.CPP
//---------------------------------------------------------------------------
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR
// PURPOSE.
//---------------------------------------------------------------------------
#include "NCT5523D.H"
#include <dos.h>
//---------------------------------------------------------------------------
unsigned int NCT5523D_BASE;
void Unlock_NCT5523D (void);
void Lock_NCT5523D (void);
//---------------------------------------------------------------------------
unsigned int Init_NCT5523D(void)
{
unsigned int result;
unsigned char ucDid;
NCT5523D_BASE = 0x4E;
result = NCT5523D_BASE;
ucDid = Get_NCT5523D_Reg(0x20);
if (ucDid == 0xC4)
//NCT5523D??
{
goto Init_Finish; }
NCT5523D_BASE = 0x2E;
result = NCT5523D_BASE;
ucDid = Get_NCT5523D_Reg(0x20);
if (ucDid == 0xC4)
//NCT5523D??
{
goto Init_Finish; }
NCT5523D_BASE = 0x00;
result = NCT5523D_BASE;
Init_Finish:
return (result);
}
//---------------------------------------------------------------------------
void Unlock_NCT5523D (void)
{
outportb(NCT5523D_INDEX_PORT, NCT5523D_UNLOCK);
outportb(NCT5523D_INDEX_PORT, NCT5523D_UNLOCK);
}
//---------------------------------------------------------------------------
void Lock_NCT5523D (void)
{
outportb(NCT5523D_INDEX_PORT, NCT5523D_LOCK);
}
//---------------------------------------------------------------------------
Summary of Contents for FWA8406
Page 1: ...FWA8408 FWA8406 1U Rackmount Network Appliance User s Manual Version 1 0 Aug 2017...
Page 15: ...8 FWA8408 FWA8406 User Manual 1 7 Dimensions Unit mm FWA8408 RPSU...
Page 16: ...General Information FWA8408 FWA8406 User Manual 9 1 Unit mm FWA8408...
Page 17: ...10 FWA8408 FWA8406 User Manual Unit mm FWA8406 RPSU...
Page 18: ...General Information FWA8408 FWA8406 User Manual 11 1 Unit mm FWA8406...
Page 30: ...Hardware Configuration FWA8408 FWA8406 User Manual 23 2 Motherboard MBN800 6L...