![background image](http://html1.mh-extra.com/html/ibase-technology/fwa8800-nic/fwa8800-nic_user-manual_604901069.webp)
62
FWA8800 User Manual
void Lock_NCT5523D (void)
{
outportb(NCT5523D_INDEX_PORT, NCT5523D_LOCK);
}
//---------------------------------------------------------------------------
void Set_NCT5523D_LD( unsigned char LD)
{
Unlock_NCT5523D();
outportb(NCT5523D_INDEX_PORT, NCT5523D_REG_LD);
outportb(NCT5523D_DATA_PORT, LD);
Lock_NCT5523D();
}
//---------------------------------------------------------------------------
void Set_NCT5523D_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_NCT5523D();
outportb(NCT5523D_INDEX_PORT, REG);
outportb(NCT5523D_DATA_PORT, DATA);
Lock_NCT5523D();
}
//---------------------------------------------------------------------------
unsigned char Get_NCT5523D_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_NCT5523D();
outportb(NCT5523D_INDEX_PORT, REG);
Result = inportb(NCT5523D_DATA_PORT);
Lock_NCT5523D();
return Result;
}
//-----------------------------------------------------------------------