Moxa Technologies V2401 Manual de usuario Pagina 23

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 61
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 22
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;
Vista de pagina 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 60 61

Comentarios a estos manuales

Sin comentarios