Appendix
SI-614 / SI-614-M User Manual
55
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;
}
//-----------------------------------------------------------------------
dra
ft