![background image](http://html1.mh-extra.com/html/ibase-technology/ib822-series/ib822-series_user-manual_3240931080.webp)
72
IB822 Series
User’s Manual
void Set_F81964_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_F81964();
outportb(F81964_INDEX_PORT, REG);
outportb(F81964_DATA_PORT, DATA);
Lock_F81964();
}
//---------------------------------------------------------------------------
unsigned char Get_F81964_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_F81964();
outportb(F81964_INDEX_PORT, REG);
Result = inportb(F81964_DATA_PORT);
Lock_F81964();
return Result;
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
//---------------------------------------------------------------------------
#ifndef F81964_H
#define F81964_H
1
//---------------------------------------------------------------------------
#define
F81964_INDEX_PORT
(F81964_BASE)
#define
F81964_DATA_PORT
(F8191)
//---------------------------------------------------------------------------
#define
F81964_REG_LD
0x07
//---------------------------------------------------------------------------
#define
F81964_UNLOCK
0x87
#define
F81964_LOCK
0xAA
//---------------------------------------------------------------------------
unsigned int Init_F81964(void);
void Set_F81964_LD( unsigned char);
void Set_F81964_Reg( unsigned char,
unsigned char); unsigned char
Get_F81964_Reg( unsigned char);
//---------------------------------------------------------------------------
#endif // F81964_H