beautypg.com

Appendix 62, Ib825 user’s manual – IBASE IB825 User Manual

Page 66

background image

APPENDIX

62

IB825 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;

}
//---------------------------------------------------------------------------