WADE-8210-H110
Copyright © Portwell 2017 WADE-8210-H110 User's Guide
33
/* IpcDIOSetInputMode Funtion
User can setting DIO is input mode ,The input mode can read out DIO status to value.
// MmioOffset – User setting DIO input mode
//Return Value – DIO read out status
*/
int IpcDIOSetInputMode(UINT32 MmioOffset)
{
UINT32 Data = 0;
UINT32 value = 0;
//Input Mode,BIT8 Set 1 & BIT9 Set 0
Data = (MmioRead32(MmioOffset) | (0x00000100)) & ~( 0x00000200);
MmioWrite32( MmioOffset, Data);
//Read out DIO status
value = MmioRead32(MmioOffset);
value = value & 0x00000002;
//Return DIO status
If(value)
return 1; //callback Hgih
else
return 0; //callback Low
}
//Example DIO1 setting input mode:
Summary of Contents for WADE-8210-H110
Page 10: ...WADE 8210 H110 Copyright Portwell 2017 WADE 8210 H110 User s Guide 10 2 2Mechanical Dimensions...
Page 13: ...WADE 8210 H110 Copyright Portwell 2017 WADE 8210 H110 User s Guide 13 3 Block Diagram...
Page 46: ...WADE 8210 H110 Copyright Portwell 2017 WADE 8210 H110 User s Guide 46 Smart Fan Function...
Page 101: ...WADE 8210 H110 Copyright Portwell 2017 WADE 8210 H110 User s Guide 101 7 2 5 Save Exit...
Page 104: ...WADE 8210 H110 Copyright Portwell 2017 WADE 8210 H110 User s Guide 104...
Page 108: ...WADE 8210 H110 Copyright Portwell 2017 WADE 8210 H110 User s Guide 108...
Page 110: ...WADE 8210 H110 Copyright Portwell 2017 WADE 8210 H110 User s Guide 110...