8 // reader open parameters, see uFR manual
9 #define READER_TYPE 1 // uFR type (1Mbps)
10 #define PORT_INTERFACE 1 // serial, auto -> ftdi -> FAIL (some shity drivers missing)
11 #define PORT_NAME "/dev/ttyUSB0"
13 // async uid sending parameters
14 #define ASYNC_SUFFIX 0 // keep it zero: + separates uids, + terminates strings
15 #define ASYNC_BAUD_RATE 1000000 // 1Mbps, otherwise UFR_COMMUNICATION_BREAK
17 #define UFR_BEEP // define this to annoy people
19 // really simple JSON helpers
20 #define JSON_START() printf("{\n")
21 #define JSON_NUM(NAME) printf("\"" #NAME "\": %d", NAME)
22 #define JSON_NEXT() printf(",\n")
23 #define JSON_STR(NAME) printf("\"" #NAME "\": \"%s\"", NAME)
24 #define JSON_END() printf("\n}\n")