
Appendix
MPT-500R/RH Series User Manual
81
SetDioInputMask:
if ((*lpIsDioAvailable)(0))
{
int DioInput;
printf(" Test for digital IO ....\n");
//Please check digital IO setting in BIOS setup utility
//Here example as follow:
// Digital GPIO [1..3] = Input
// Digital GPIO [4..6] = Output
//set hardware information for GPIO chip
//bit 0..2 : input for GPIO_0 to GPIO_2
//bit 4..6 : output for GPIO_4 to GPIO_6
(*lpSetDioInputMask)(0x07);
(*lpSetDioOutputMask)(0x70);
DioInput = (*lpGetDioInput)(0);
printf(" Current GPIO_0 to GPIO_2 is 0x%X\n", DioInput);
while(1)
{
(*lpSetDioOutput)(0x00);
printf(" Set GPIO_4 to GPIO_6 to LOW\n");
(*lpSetDioOutput)(0x70);
printf(" Set GPIO_4 to GPIO_6 to HIGH\n");
(*lpSetDioOutput)(0x30);
printf(" Set GPIO_4 to GPIO_5 to HIGH\n");
(*lpSetDioOutput)(0x60);
printf(" Set GPIO_5 to GPIO_6 to HIGH\n");
Sleep(500);
if (_kbhit())
{
break;
}//if (kbhit())
}//while(1)
}//if ((*lpIsDioAvailable)(0))
Note:
Be sure to set up the input / output for GPIO bits in BIOS identically with
the GPIO hardware information above.
Содержание MPT-500R
Страница 1: ...MPT 500R RH Intelligent Railway Gateway System User s Manual Version 1 0 October 2022...
Страница 8: ......
Страница 18: ...10 MPT 500R RH Series User Manual 1 8 Dimensions Unit mm...
Страница 27: ...Hardware Configuration MPT 500R RH Series User Manual 19 2 9 RI NC...
Страница 48: ...40 MPT 500R RH Series User Manual 2 5 26 J24 J25 USB Type C Flash Connector Factory use only...
Страница 61: ...BIOS Setup MPT 500R RH Series User Manual 53 4 4 4 1 CPU Configuration...
Страница 62: ...54 MPT 500R RH Series User Manual 4 4 2 PCH FW Configuration...
Страница 65: ...BIOS Setup MPT 500R RH Series User Manual 57 4 Serial Port 3 Configuration Serial Port 4 Configuration...
Страница 68: ...60 MPT 500R RH Series User Manual 4 4 7 Network Stack Configuration...
Страница 69: ...BIOS Setup MPT 500R RH Series User Manual 61 4 4 4 8 Integrated Peripherals 4 4 9 NVMe Configuration...