48
Read Ignition Register
& Example Code
if
(pFunc !=
IntPtr
.Zero)
{
UInt32
PortVal;
SetPortValType
SetPortVal = (
SetPortValType
)
Marshal
.GetDelegateForFunctionPointer(pFunc,
typeof
(
SetPortValType
));
GetPortValType
GetPortVal = (
GetPortValType
)
Marshal
.GetDelegateForFunctionPointer(pFunc,
typeof
(
GetPortValType
));
SetPortVal(0x4E, 0x87, 1);
// Enter Super IO
SetPortVal(0x4E, 0x87, 1);
// Enter Super IO
SetPortVal(0x4E, 0x07, 1);
// Select Logic 7 for GPIO
SetPortVal(0x4F, 0x06, 1);
SetPortVal(0x4E, 0xD2, 1);
// Ignition Status Register bit4
// Call WinIo to get value
bool
Result1 = GetPortVal(0x4F, &PortVal, 1);
// Read GPIO Status
SetPortVal(0x4E, 0xAA, 1);
// exit PNP mode
5.2.2 GPIO Programming Procedure
<
// C# use Winio >
(1) Write Register & Example Code
IntPtr
pFunc = GetProcAddress(hMod,
"SetPortVal"
);
if
(pFunc !=
IntPtr
.Zero)
{
SetPortValType
SetPortVal = (
SetPortValType
)
Marshal
.GetDelegateForFunctionPointer(pFunc,
typeof
(
SetPortValType
));
SetPortVal(0x4E, 0x87, 1);
// Enter Super IO
SetPortVal(0x4E, 0x87, 1);
// Enter Super IO
SetPortVal(0x4E, 0x07, 1);
// Select Logic 7 for GPIO
SetPortVal(0x4F, 0x06, 1);
//
SetPortVal(0x4E, 0xA1, 1);
// Set GPIO 5X Address
SetPortVal(0x4F, 0xF0, 1);
// Set GPO 0~3 value = "0" means output is low
SetPortVal(0x4E, 0xAA, 1);
// exit PNP mode
}
Содержание VBOX-3200
Страница 8: ...8 1 2 VBOX 3200 Illustration Mainboard...
Страница 9: ...9 System...
Страница 10: ...10 2 System Installation 2 1 System Introduction...
Страница 32: ...32 English 4 1 System Introduction 4 System Installation...
Страница 50: ...50...
Страница 54: ...54 Figure 4 Link State of WWAN Module Figure 5 Download Test File from Internet...
Страница 58: ...58 Figure 4 Link State of WWAN Module Figure 5 GPS longitude and latitude information...
Страница 59: ...59 Figure 6 Link to Google Maps Figure 7 GPSview program test...
Страница 61: ...61 6 BIOS 6 1 Super IO Configuration Select Serial Port Mode...
Страница 62: ...62 Select Power off delay time...