35
GPIO Status Register Read
GPIO Comparison
GETINT2PROC ProcAdd1;
int datatest;
char NRtest[] = "0x22";
ProcAdd1 = (GETINT2PROC) GetProcAddress(hinstLib, "GPIO_LPC_R");
if (NULL != ProcAdd1)
{
if (! (*ProcAdd1)( strtol(NRtest, &endptr, 16), &datatest))
{
ShowMessage("Read Fail");
}
}
if( data == 0xF0 )
{
((CStatic *)GetDlgItem(IDC_LED_DO0))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE
(IDB_BITMAP_Green)));
((CStatic *)GetDlgItem(IDC_LED_DO1))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE
(IDB_BITMAP_Green)));
((CStatic *)GetDlgItem(IDC_LED_DO2))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE
(IDB_BITMAP_Green)));
((CStatic *)GetDlgItem(IDC_LED_DO3))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE
(IDB_BITMAP_Green)));
if( data2 == 0x01 )
{
((CStatic *)GetDlgItem(IDC_LED_DI0))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE
(IDB_BITMAP_Green)));
((CStatic *)GetDlgItem(IDC_LED_DI1))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE
(IDB_BITMAP_Red)));
((CStatic *)GetDlgItem(IDC_LED_DI2))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE
(IDB_BITMAP_Red)));
((CStatic *)GetDlgItem(IDC_LED_DI4))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE
(IDB_BITMAP_Red)));
}
.....
}
Summary of Contents for 3I810BW
Page 8: ...3 2 1 3 1 2 3 Photo 1 Insert Unplug...
Page 17: ...12 2 1 Dimension 3I810HW Chapter 2 16 25 8 3 146 115...
Page 19: ...14 2 2 1 Layout 3I810HW Connector and Jumper BOT SATA2 SATA1...
Page 21: ...16 2 2 3 Diagram 3I810HW BOT SATA2 SATA1...
Page 23: ...18 2 3 1 LAYOUT 3I810HW FUNCTION MAP BOT SATA2 SATA1...
Page 69: ...64 To select the Serial port to RS232 RS422 RS485 default is RS232...
Page 71: ...66 To select the Serial port to RS232 RS422 RS485 default is RS232...
Page 76: ...71 To select the Serial port to RS232 RS422 RS485 default is RS232...
Page 78: ...73 To select the Serial port to RS232 RS422 RS485 default is RS232...
Page 80: ...75 To select the Serial port to RS232 RS422 RS485 default is RS232...
Page 82: ...77 To select the Serial port to RS232 RS422 RS485 default is RS232...
Page 84: ...79 4 6 7 Network Stack Con guration To enable the Network stack or not default is Disabled...
Page 85: ...80 4 6 8 NVMe Con guration To detect NVMe storage automatically...
Page 87: ...82 4 7 1 System Agent SA Con guration Graphics Con guration Please refer section 4 7 1 1...
Page 90: ...85 4 7 2 1 PCI Express Con guration The optional settings are Enabled default Disabled...