diff options
author | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-05-05 17:50:09 +0200 |
---|---|---|
committer | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-05-05 17:50:09 +0200 |
commit | db50711ba4a1f41f4082981bae58f213d48d96a1 (patch) | |
tree | 6480922fdc46a51bfb2e22e57d02cc0d3aef9d06 /controller/fw/src/rslib.c | |
parent | 9918eb505321183e20357221a4dcf2aa9c1e057c (diff) | |
download | master-thesis-db50711ba4a1f41f4082981bae58f213d48d96a1.tar.gz master-thesis-db50711ba4a1f41f4082981bae58f213d48d96a1.tar.bz2 master-thesis-db50711ba4a1f41f4082981bae58f213d48d96a1.zip |
fw: Tie together all parts for an end-to-end demo
Diffstat (limited to 'controller/fw/src/rslib.c')
-rw-r--r-- | controller/fw/src/rslib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/controller/fw/src/rslib.c b/controller/fw/src/rslib.c index ce54a6f..aa0db2c 100644 --- a/controller/fw/src/rslib.c +++ b/controller/fw/src/rslib.c @@ -6,20 +6,19 @@ #include "rslib.h" +static struct rscode_driver driver; + void rslib_encode(int nbits, size_t msglen, char msg[static msglen], char out[msglen + NPAR]) { - struct rscode_driver driver; rscode_init(&driver, nbits); rscode_encode(&driver, (unsigned char *)msg, msglen, (unsigned char *)out); } int rslib_decode(int nbits, size_t msglen, char msg_inout[static msglen]) { - struct rscode_driver driver; rscode_init(&driver, nbits); return rscode_decode(&driver, (unsigned char *)msg_inout, msglen); } int rslib_gexp(int z, int nbits) { - struct rscode_driver driver; rscode_init(&driver, nbits); return gexp(&driver, z); } |