V02.00 | 2021/05
67
}
// set direction to read...
if((fh =fopen("/sys/class/gpio/gpio59/direction", "w")) !=
{
fputs("in",fh);
fclose(fh);
}
else
{
printf("failed on setting direction to read...\n");
return -1;
}
// set active low to read...
{
fputs("1",fh);
fclose(fh);
}
else
{
printf("failed on setting active low ...\n");
return -1;
}
// read GPIO...
if((fh = fopen("/sys/class/gpio/gpio59/value", "r")) !=
{
fgets(input,2,fh);
fclose(fh);
printf("Value: %c\n", input[0]);
}
else
{
printf("failed on reading ...\n");
return -1;
}
/*
Summary of Contents for 100000897
Page 1: ...Your Global Automation Partner Instructions for Use TN UHF LNX UHF Reader...
Page 2: ...2 Hans Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com...
Page 69: ...V02 00 2021 05 69 fclose fh else printf failed on writing n return 1...
Page 75: ...V02 00 2021 05 75 else printf failed on writing n return 1 return EXIT_SUCCESS...
Page 93: ...V02 00 2021 05 93 Select RS485 RFID and confirm with OK Fig 67 Selecting the RS485 interface...
Page 97: ...V02 00 2021 05 97 Click the Select BL File button Fig 73 Button selecting a BL file...