Fortec Star iBASE IB898 User Manual page 54

Table of Contents

Advertisement

APPENDIX
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;
}
//---------------------------------------------------------------------------
IB898 User's Manual
49

Advertisement

Table of Contents
loading

This manual is also suitable for:

E3825E3815

Table of Contents