#define SER_PORT "/dev/ttyUSB0"
#define SAVE_CONFIG "./learned.txt"
#include "./eoLink.h"
#include <stdio.h>
int commands_example() {
{
printf("Failed to open USB300\n");
return -1;
}
{
printf("%s %i.%i.%i.%i, ID:0x%08X on %s\n",
SER_PORT);
}
else
{
printf("Failed to retrieve USB300 version\n");
return -1;
}
printf ("Successful BIST performed!\n");
else
{
printf("Failed to perform BIST\n");
return -1;
}
else
{
printf("Failed to retrieve USB300 base ID\n");
return -1;
}
uint8_t repLevel = 1;
printf("Repeater added!\n");
else
{
printf("Failed to add repeater\n");
return -1;
}
printf(
"Enabled: %s, Level: %i\n", repeater.
repEnable ?
"true":
"false", repeater.
repLevel);
else
{
printf("Failed to read repetear\n");
return -1;
}
printf("Filter added!\n");
else
{
printf("Failed to add filter\n");
return -1;
}
uint8_t filterCount;
printf("Filter type: %i, Filter value: 0x%08X\n", filter[0].filterType, filter[0].filterValue);
else
{
printf("Failed to read filter\n");
return -1;
}
printf("Filter deleted\n");
else
{
printf("Failed to delete filter\n");
return -1;
}
printf("Filter enabled\n");
else
{
printf("Failed to enable filter\n");
return -1;
}
printf("All filter has been deleted!\n");
else
{
printf("Failed to delete all filter\n");
return -1;
}
printf("Maturity turned on\n");
else
{
printf("Failed to turn on maturity\n");
return -1;
}
return 0;
}