Did something like this (but for U2F authentication). It's not that hard, but depending on the library you Do have to play around with C code a bit.
Thankfully, most libraries also come with a open source example on how to use them, most likely some test program that let's you exercise all (or most) hardware function.
So, first thing i usually do is to write a small, low level wrapper library around the original library by hacking up the example code. This will give me the option of abstracting away stuff like memory managment.
On this, my low level wrapper library, i run h2xs to turn it into a low level Perl module. Depending on what i want to do with that, most of the time i create a high level Perl module around THAT to have nice and easy access.
You can kind of see that in Crypt::U2F (which reminds me i have to fix some things and release a new version).
If there's interest, i'll be willing to write up a step-by-step description as a meditation. (Since it's a lot of work, knowing that there is at least one interested reader would be nice).
In reply to Re: Digilent Inc. Analog Discovery
by cavac
in thread Digilent Inc. Analog Discovery
by jmlynesjr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |