2 ============================================================================
7 Description : Very simple test of uFR library
8 ============================================================================
14 #include "/usr/include/uFCoder.h"
17 * Calls ReaderOpenEx() and print status
19 UFR_STATUS reader_open_ex(uint32_t reader_type, c_string port_name, uint32_t port_interface)
23 status = ReaderOpenEx(reader_type, port_name, port_interface, 0);
24 printf("ReaderOpenEx(%d, '%s', %d, 0):> %s\n", reader_type, port_name,
25 port_interface, UFR_Status2String(status));
34 puts("Test ReaderOpen version 1.0\n");
35 //--------------------------------------------------------------
36 printf("* uFCoder library version: %s\n\n", GetDllVersionStr());
37 //--------------------------------------------------------------
39 puts("Test opening Digital Logic shield uFR RS232 on RPi:");
40 status = ReaderOpen();
41 printf("ReaderOpen():> %s\n", UFR_Status2String(status));
43 status = ReaderUISignal(3, 3);
44 printf("ReaderUISignal(3, 3):> %s\n", UFR_Status2String(status));
46 puts(GetReaderDescription());
48 status = ReaderClose();
49 printf("ReaderClose():> %s\n", UFR_Status2String(status));