APPENDIX
50
IB892 User’s Manual
{
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;
}
//---------------------------------------------------------------------------