Appendix
MI979 Series
User’s Manual
77
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 MI979 Series
Page 5: ...MI979 Series User s Manual v This page is intentionally left blank ...
Page 8: ...viii MI979 Series User s Manual This page is intentionally left blank ...
Page 14: ...6 MI979 Series User s Manual 1 6 Block Diagram ...
Page 17: ...General Information MI979 Series User s Manual 9 1 1 8 Dimensions ...
Page 18: ...10 MI979 Series User s Manual This page is intentionally left blank ...
Page 42: ...34 MI979 Series User s Manual This page is intentionally left blank ...
Page 50: ...42 MI979 Series User s Manual This page is intentionally left blank ...
Page 76: ...68 MI979 Series User s Manual This page is intentionally left blank ...