Ktam3874/pitx software guide – Kontron KTAM3874-pITX User Manual
Page 91
Advertising

KTD-S0057-I
Page 87 Linux® Programming Examples (DebianTM)
KTAM3874/pITX Software Guide
if (rs485_outgoing_msg ())
{
rts_as_gpio_close (); close (fd);
printf ("Error during transmit operation!\n\n");
return
-1;
}
if (rs485_incoming_msg ())
{
rts_as_gpio_close (); close (fd);
printf ("Error during receive operation!\n\n");
return
-1;
}
rts_as_gpio_close
();
close
(fd);
printf ("RS485 test successfully finished.\n\n");
return
0;
}
Advertising
This manual is related to the following products: