Moxa V2401-LX Руководство по программной части (Windows) онлайн [23/61] 170747

Moxa V2401-LX Руководство по программной части (Windows) онлайн [23/61] 170747
V2401/2402 WinXP User’s Manual Introduction
1-20
printf("Invalid value!!\n");
break;
}
printf("COM%d=%s\n",port,mode_array[mode]);
break;
// if char == '2', Set the UART Mode
case 2:
//Get Port Number
printf("Input the Port Number (1~4) = \n");
wscanf(L"%s",wcs_port);
port=_wtoi(wcs_port);
//Get Mode Value
printf("Input the Mode value (0 ~ 3) = ");
wscanf(L"%s",wcs_mode);
mode=_wtoi(wcs_mode);
//Set UART Mode
if(uart_setmode(port,mode)==-1)
{
printf("Invalid value!!\n");
printf("Set UART Mode Fail!!\n");
}
else
{
printf("COM%d=%s\n",port,mode_array[mode]);
}
break;
}
getwchar();
sin = getwchar();
n = _wtoi(&sin);
} while (n != 0);
return 0;

Похожие устройства

Скачать