mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
SWIG experiments
Squash of the following commits (a full rebase was too hard :( ) *ef309cfdf
N - SWIG: create pm3.c (5 months ago) <Philippe Teuwen> *05ba6a73f
N - swig pm3_device -> pm3 (5 months ago) <Philippe Teuwen> *d59630183
N - swig: move pm3.i (5 months ago) <Philippe Teuwen> *6adcfad75
N - Fix historic make & cmake (5 months ago) <Philippe Teuwen> *bcbef2edf
N - Fix typo with script_embedded (5 months ago) <slurdge> *538ee4dab
N - Better SWIG integration: autogen func & attributes (5 months ago) <slurdge> *756b62466
N - SWIG: few helper scripts (5 months ago) <Philippe Teuwen> *47ba4acd0
N - SWIG %extend (5 months ago) <Philippe Teuwen> *21841cb9d
N - simplify scripts (5 months ago) <Philippe Teuwen> *78c4f7929
N - Revert "SWIG experiments: introduce context" (5 months ago) <Philippe Teuwen> *1562b75fc
N - SWIG experiments: introduce context (5 months ago) <Philippe Teuwen> *a503dfcd9
N - SWIG experiments (5 months ago) <Philippe Teuwen>
This commit is contained in:
parent
e959d0e229
commit
eadacd82f5
42 changed files with 8542 additions and 34 deletions
3
client/experimental_lib/example_c/01make_test.sh
Executable file
3
client/experimental_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/experimental_lib/example_c/02run_test.sh
Executable file
3
client/experimental_lib/example_c/02run_test.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
LD_LIBRARY_PATH=../build ./test
|
8
client/experimental_lib/example_c/test.c
Normal file
8
client/experimental_lib/example_c/test.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "pm3.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
pm3 *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