[riot-notifications] [RIOT-OS/RIOT] Wiegand driver for RIOT-OS (#12217)

Mario Gómez notifications at github.com
Thu Sep 26 03:48:14 CEST 2019

mxgxw commented on this pull request.

> +    return *codehigh | *codelow;
+  }
+  return *codelow; // EM tag or Mifare without parity bits
+ * @brief Process the temporary Wiegand buffer and decodes the data.
+ *
+ */
+bool wg_do_conversion(wiegand_t *dev)
+  uint64_t sysTick;
+  sysTick = xtimer_now_usec64();
+  if ((sysTick - dev->wg_last_wiegand) > 25000) // if no more signal coming through after 25ms

I didn't really wanted to make any function blocking because an RFID reader could stay without any activity during several hours. I know that the sleep strategy essentially will not use any resources but it's more just a design approach to keep the usage more readable and easy to integrate.

May be I can provide a blocking function with a timeout specified by the user.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190925/302d8b2f/attachment.htm>

More information about the notifications mailing list