Appendix 60, Mi889 user’s manual – IBASE MI889 User Manual
Page 64
APPENDIX
60
MI889 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;
}
//---------------------------------------------------------------------------