![Lex 3I270D Скачать руководство пользователя страница 41](http://html1.mh-extra.com/html/lex/3i270d/3i270d_manual_1887001041.webp)
37
1. Write_Byte Mode
2. Read_Byte Mode
3. Check Device (F75111)
4. SMBus_Clear
5 SMBus_Wait
6. SMBus_Busy
7. IO_Write
8. IO_Read
9. Define SMBus IO address
10. Define SMBus pin in SMBus.
int SMBus::Write_Byte(WORD dwSlave, BYTE pCmd, BYTE pByte)
{
this->SMBus_Clear();
// Clear SMBus data first
if (this->SMBus_Busy()) // Check SMBus busy or not, return busy if busy
return SMBUS_BUSY;
this->IO_Write(SMBHSTADD , dwSlave & ~1 ); // write address in first variable
this->IO_Write(SMBHSTCMD , pCmd ); // write command in second variable
this->IO_Write(SMBHSTDAT0 , pByte ); // write data in third variable
this->IO_Write(SMBHSTCNT , SMBHSTCNT_START | SMBHSTCNT_BYTE);
// Sent start command to SMBus control register
return (int)this->SMBus_Wait(); // return wait command when SMBus finish the job
}
int SMBus::Read_Byte(WORD dwSlave, BYTE pCmd, BYTE *pByte)
{
this->SMBus_Clear();
// Clear SMBus data first
if (this->SMBus_Busy())
// Check SMBus busy or not, return busy if busy
return SMBUS_BUSY;
this->IO_Write(SMBHSTADD , dwSlave | 1 ); // write address in first variable
this->IO_Write(SMBHSTCMD , pCmd ); // write command in second variable
this->IO_Write(SMBHSTCNT , SMBHSTCNT_START | SMBHSTCNT_BYTE);
// Sent start command to SMBus control register
Contents
1. Write Byte Mode
2. Read Byte Mode
Содержание 3I270D
Страница 4: ...July 10 2009 2009...
Страница 7: ...3 Photo 1 2 1 3 1 2 3 Insert Unplug...
Страница 10: ......
Страница 21: ...17 2 5 1 Bottom Side Diagram 3I270D Back Panel 3I270D SATA1 SATA2 DC 12V IN VGA USB LAN 2 LAN 4 LAN 3 LAN 1...