Appendix
IB918F User’s Manual
71
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 IB918F
Page 1: ...IB918F AMD Ryzen Embedded V1000 R1000 3 5 Disk Size SBC User s Manual Version 1 0...
Page 8: ...viii IB918F User s Manual This page is intentionally left blank...
Page 14: ...6 IB918F User s Manual 1 6 Block Diagram...
Page 17: ...General Information IB918F User s Manual 9 1 1 8 Dimensions...
Page 18: ...10 IB918F User s Manual This page is intentionally left blank...
Page 22: ...14 IB918F User s Manual 2 3 Jumper Connector Locations on IB918F...