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)));
}
.....
}
Содержание 3I810BW
Страница 8: ...3 2 1 3 1 2 3 Photo 1 Insert Unplug...
Страница 17: ...12 2 1 Dimension 3I810HW Chapter 2 16 25 8 3 146 115...
Страница 19: ...14 2 2 1 Layout 3I810HW Connector and Jumper BOT SATA2 SATA1...
Страница 21: ...16 2 2 3 Diagram 3I810HW BOT SATA2 SATA1...
Страница 23: ...18 2 3 1 LAYOUT 3I810HW FUNCTION MAP BOT SATA2 SATA1...
Страница 69: ...64 To select the Serial port to RS232 RS422 RS485 default is RS232...
Страница 71: ...66 To select the Serial port to RS232 RS422 RS485 default is RS232...
Страница 72: ...67 4 6 3 3 Power Failure To select the power behavior after power fail default is Keep last state...
Страница 76: ...71 To select the Serial port to RS232 RS422 RS485 default is RS232...
Страница 78: ...73 To select the Serial port to RS232 RS422 RS485 default is RS232...
Страница 80: ...75 To select the Serial port to RS232 RS422 RS485 default is RS232...
Страница 82: ...77 To select the Serial port to RS232 RS422 RS485 default is RS232...
Страница 84: ...79 4 6 7 Network Stack Con guration To enable the Network stack or not default is Disabled...
Страница 85: ...80 4 6 8 NVMe Con guration To detect NVMe storage automatically...
Страница 87: ...82 4 7 1 System Agent SA Con guration Graphics Con guration Please refer section 4 7 1 1...
Страница 90: ...85 4 7 2 1 PCI Express Con guration The optional settings are Enabled default Disabled...
Страница 93: ...88 4 8 Security Administrator Password User Password To set up an Administrator or an User password...