beautypg.com

Installation 24, Ib831 user’s manual, Filename:w627dhg.h – IBASE IB831 User Manual

Page 28

background image

INSTALLATION

24

IB831 User’s Manual


}
//===========================================================================
void Set_W697HF_Reg( unsigned char REG, unsigned char DATA)
{

Unlock_W697HF();

outportb(W697HF_INDEX_PORT, REG);

outportb(W697HF_DATA_PORT, DATA);

Lock_W697HF();

}
//===========================================================================
unsigned char Get_W697HF_Reg(unsigned char REG)
{

unsigned char Result;

Unlock_W697HF();

outportb(W697HF_INDEX_PORT, REG);

Result = inportb(W697HF_DATA_PORT);

Lock_W697HF();

return Result;

}
//===========================================================================

Filename:W627DHG.h


//---------------------------------------------------------------------------
//
// 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 __W627DHG_H
#define __W627DHG_H

1

//---------------------------------------------------------------------------
#define

W627DHG_INDEX_PORT

(W627DHG_BASE)

#define

W627DHG_DATA_PORT

(W627DHG_BASE+1)

//---------------------------------------------------------------------------
#define

W627DHG_REG_LD

0x07

//---------------------------------------------------------------------------
#define W627DHG_UNLOCK

0x87

#define

W627DHG_LOCK

0xAA

//---------------------------------------------------------------------------
unsigned int Init_W627DHG(void);
void Set_W627DHG_LD( unsigned char);
void Set_W627DHG_Reg( unsigned char, unsigned char);
unsigned char Get_W627DHG_Reg( unsigned char);
//---------------------------------------------------------------------------
#endif

//__W627DHG_H