
64
ASB200-918 User Manual
3.
Sample Code: The file NCT6116D.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 "NCT6116D.H"
#include <dos.h>
//---------------------------------------------------------------------------
unsigned int NCT6116D_BASE;
void Unlock_NCT6116D (void);
void Lock_NCT6116D (void);
//---------------------------------------------------------------------------
unsigned int Init_NCT6116D(void)
{
unsigned int result;
unsigned char ucDid;
NCT6116D_BASE = 0x4E;
result = NCT6116D_BASE;
ucDid = Get_NCT6116D_Reg(0x20);
if (ucDid == 0xC4)
//NCT6116D??
{
goto Init_Finish;
}
NCT6116D_BASE = 0x2E;
result = NCT6116D_BASE;
ucDid = Get_NCT6116D_Reg(0x20);
if (ucDid == 0xC4)
//NCT6116D??
{
goto Init_Finish;
}
NCT6116D_BASE = 0x00;
result = NCT6116D_BASE;
Init_Finish:
return (result);
}
//---------------------------------------------------------------------------
void Unlock_NCT6116D (void)
{
outportb(NCT6116D_INDEX_PORT, NCT6116D_UNLOCK);
outportb(NCT6116D_INDEX_PORT, NCT6116D_UNLOCK);
}
//---------------------------------------------------------------------------
Summary of Contents for ASB200-918 Series
Page 1: ...ASB200 918 Fanless System with 3 5 Disk Size SBC System User s Manual Version 1 0 October 2020...
Page 8: ...viii ASB200 918 User Manual THIS PAGE IS INTENTIONALLY LEFT BLANK...
Page 16: ...8 ASB200 918 User Manual 1 7 Dimensions Unit mm...