Advantech PCI-1682U Manuel d'utilisateur Page 38

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 104
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 37
PCI-1680U/1682U User Manual 32
//error
}
config.target = CONF_ACC_FILTER;
config.val1 = 1; //1: set single filter mode; 0: set dual
filter mode
bSuccess = DeviceIoControl (
hDevice,
CAN_IOCTL_CONFIG,
&config,
sizeof(Command_par),
NULL,
0,
&dwReturned,
NULL
);
if(!bSuccess)
{
//error
}
config.target = CONF_ACC;
config.val1 = 0xffffffff;
config.val2 = 0xffffffff;
bSuccess = DeviceIoControl (
hDevice,
CAN_IOCTL_CONFIG,
&config,
sizeof(Command_par),
NULL,
0,
&dwReturned,
NULL
);
if(!bSuccess)
{
//error
}
cmd.cmd = CMD_START;
bSuccess = DeviceIoControl (
hDevice,
CAN_IOCTL_COMMAND,
&cmd,
sizeof(Command_par),
NULL,
0,
&dwReturned,
NULL
Vue de la page 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 103 104

Commentaires sur ces manuels

Pas de commentaire