CCSDS USLP (Unified Space Link Protocol) Transfer Frame- unified TM/TC/AOS
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(wire): add C code generation for protocol codecs

+32
+25
c/dune
··· 1 + ; Pure C library for USLP Transfer Frame Header (CCSDS 732.1-B-2) 2 + ; 3 + ; The C library files are promoted to the source tree. 4 + ; Regenerate with: dune build @ocaml-uslp/c/gen 5 + 6 + (executable 7 + (name gen) 8 + (modules gen) 9 + (libraries uslp wire.c)) 10 + 11 + (rule 12 + (alias gen) 13 + (mode promote) 14 + (targets EverParse.h UslpHeader.h UslpHeader.c test.c) 15 + (deps gen.exe) 16 + (action 17 + (run ./gen.exe))) 18 + 19 + (rule 20 + (alias runtest) 21 + (deps test.c EverParse.h UslpHeader.h UslpHeader.c) 22 + (action 23 + (progn 24 + (run cc -std=c11 -Wall -Wextra -o test_uslp test.c) 25 + (run ./test_uslp))))
+7
c/gen.ml
··· 1 + let () = 2 + let outdir = if Array.length Sys.argv > 1 then Sys.argv.(1) else "." in 3 + Wire_c.generate ~outdir 4 + [ 5 + Wire_c.schema ~name:"UslpHeader" ~module_:Uslp.module_ 6 + ~wire_size:(Wire.Codec.wire_size Uslp.codec); 7 + ]