![background image](http://html1.mh-extra.com/html/ibase-technology/ib895/ib895_user-manual_3247899053.webp)
APPENDIX
IB895 User’s Manual
49
{
Unlock_W627UHG();
outportb(W627UHG_INDEX_PORT, W627UHG_REG_LD);
outportb(W627UHG_DATA_PORT,
LD);
Lock_W627UHG();
}
//---------------------------------------------------------------------------
void Set_W627UHG_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_W627UHG();
outportb(W627UHG_INDEX_PORT,
REG);
outportb(W627UHG_DATA_PORT,
DATA);
Lock_W627UHG();
}
//---------------------------------------------------------------------------
unsigned char Get_W627UHG_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_W627UHG();
outportb(W627UHG_INDEX_PORT,
REG);
Result = inportb(W627UHG_DATA_PORT);
Lock_W627UHG();
return
Result;
}
//---------------------------------------------------------------------------