MSI MS-98H5 User Manual page 51

Industrial computer board
Table of Contents

Advertisement

GPIO WDT BKL Programming
val = SMBus_ReadByte (0x6E, 0x42);
val = val & (1<<2);
if (val)
else
Example: Get N_GPI6 input value.
val = SMBus_ReadByte (0x6E, 0x42);
val = val & (1<<6);
if (val)
else
A-4
// Read value from N_GPI2 port through SMBus.
// Read N_GPI2 address (bit 2).
printf ("Input of N_GPI2 is High");
printf ("Input of N_GPI2 is Low");
// Read value from N_GPI6 port through SMBus.
// Read N_GPI6 address (bit 6).
printf ("Input of N_GPI6 is High");
printf ("Input of N_GPI6 is Low");

Advertisement

Table of Contents
loading

Table of Contents