ROHS EmETXe-i9652 User Manual page 79

Table of Contents

Advertisement

Appendix
}
SMB_Byte_WRITE(int SMPORT, int DeviceID, int REG_INDEX, int REG_DATA)
{
outportb(SMPORT+02, 0x00);
outportb(SMPORT+00, 0xff);
delay(10);
outportb(SMPORT+04, DeviceID);
outportb(SMPORT+03, REG_INDEX);
outportb(SMPORT+05, REG_DATA);
outportb(SMPORT+02, 0x48);
}
/* clear */
/* clear */
/* I2C Device Address */
/* Register Address in device */
/* Data Value */
/* write, active*/
- 75 -

Advertisement

Table of Contents
loading

Table of Contents