mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
SWIG experiments
This commit is contained in:
parent
62ce1cdf13
commit
a503dfcd98
34 changed files with 8106 additions and 15 deletions
3
client/lib/example_c/01make_test.sh
Executable file
3
client/lib/example_c/01make_test.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
gcc -o test test.c -I../../include -lpm3rrg_rdv4 -L../build -lpthread
|
3
client/lib/example_c/02run_test.sh
Executable file
3
client/lib/example_c/02run_test.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
LD_LIBRARY_PATH=../build ./test
|
8
client/lib/example_c/test.c
Normal file
8
client/lib/example_c/test.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "pm3.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
pm3_device *p;
|
||||
p = pm3_open("/dev/ttyACM0");
|
||||
pm3_console(p, "hw status");
|
||||
pm3_close(p);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue