Copyright © 2013 IBASE Technology Inc. All Rights Reserved.
61
IBASE Technology Inc.
File of the 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);