45
IO function In
fi
le SMBus.c
Initial internal F75111
Introduction
void SMBusIoWrite(BYTE byteOffset,BYTE byteData)
{
outb( byteData , m_SMBusMap byteOffset);
}
BYTE SMBusIoRead(BYTE byteOffset)
{
DWORD dwAddrVal;
dwAddrVal = inb(m_SMBusMap byteOffset);
return (BYTE)(dwAddrVal & 0x0FF);
}
void F75111::InitInternalF75111()
{
this->Write_Byte(F75111_INTERNAL_ADDR,GPIO1X_CONTROL_MODE ,0x00); //set GPIO1X to Input function
this->Write_Byte(F75111_INTERNAL_ADDR,GPIO3X_CONTROL_MODE ,0x00); //set GPIO3X to Input function
this->Write_Byte(F75111_INTERNAL_ADDR,GPIO2X_CONTROL_MODE ,0xFF); //set GPIO2X to Output function
this->Write_Byte(F75111_INTERNAL_ADDR,F75111_CONFIGURATION, 0x03); //Enable WDT OUT function
}
Set output value
void F75111::InterDigitalOutput(BYTE byteValue)
{
BYTE byteData = 0;
byteData = (byteData & 0x01 )? byt 0x01 : byteValue;
byteData = (byteData & 0x02 )? byt 0x02 : byteValue;
byteData = (byteData & 0x04 )? byt 0x04 : byteValue;
byteData = (byteData & 0x80 )? byt 0x08 : byteValue;
byteData = (byteData & 0x40 )? byt 0x10 : byteValue;
byteData = (byteData & 0x20 )? byt 0x20 : byteValue;
byteData = (byteData & 0x10 )? byt 0x40 : byteValue;
byteData = (byteData & 0x08 )? byt 0x80 : byteValue; // get value bit by bit
this->Write_Byte(F75111_INTERNAL_ADDR,GPIO2X_OUTPUT_DATA,byteData); // write byteData value via GPIO2X output pin
}
Summary of Contents for 2I392CW
Page 7: ...3 2 1 3 1 2 3 Photo 1 Insert Unplug...
Page 18: ...14 2 3 Dimension 2I392CW...
Page 20: ...16 2 4 1 Layout 2I392CW Connector and Jumper Bottom BOT CU3 CU4 SATA1...
Page 22: ...18 2 5 1 Layout 2I392CW Function MAP BOT USB3 0 USB3 0 SATA Connector...
Page 24: ...20 2 6 1 Diagram 2I392CW BOT CU3 CU4 SATA1...
Page 71: ...67 4 5 2 South Cluster Configuration...
Page 73: ...69 4 5 2 2 PCI Express Configuration EIO P1 The optional settings are Enabled default Disabled...