IBASE MB837-D25 User Manual
Page 61
APPENDIX
MB837-D25 / MB837-D25-R User’s Manual
55
Set_W627UHG_Reg(0x30, ucBuf);
}
//---------------------------------------------------------------------------
void Dio5SetOutput(unsigned char NewData)
{
Set_W627UHG_LD(0x08);
//switch to logic device 8
Set_W627UHG_Reg(0xE1, NewData);
}
//---------------------------------------------------------------------------
unsigned char Dio5GetInput(void)
{
unsigned char result;
Set_W627UHG_LD(0x08);
//switch to logic device 8
result = Get_W627UHG_Reg(0xE1);
return (result);
}
//---------------------------------------------------------------------------
void Dio5SetDirection(unsigned char NewData)
{
//NewData : 1 for input, 0 for output
Set_W627UHG_LD(0x08);
//switch to logic device 8
Set_W627UHG_Reg(0xE0, NewData);
}
//---------------------------------------------------------------------------
unsigned char Dio5GetDirection(void)
{
unsigned char result;
Set_W627UHG_LD(0x08);
//switch to logic device 8
result = Get_W627UHG_Reg(0xE0);
return (result);
}
//---------------------------------------------------------------------------