CCSDS Command Link Control Word (CLCW) for spacecraft command
0
fork

Configure Feed

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

ocaml-linkedin: apply dune fmt

Pure formatting changes from `dune fmt`: doc comment placement moves
from above the binding to below it for `type`s, multi-line `match`
expressions collapse onto one line where they fit, and infix operator
applications pick up spaces (`Soup.($?)` -> `Soup.( $? )`). No
semantic changes.

+21 -3
+14 -3
README.md
··· 9 9 10 10 ## Installation 11 11 12 + Install with opam: 13 + 14 + ```sh 15 + $ opam install clcw 12 16 ``` 13 - opam install clcw 17 + 18 + If opam cannot find the package, it may not yet be released in the public 19 + `opam-repository`. Add the overlay repository, then install it: 20 + 21 + ```sh 22 + $ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git 23 + $ opam update 24 + $ opam install clcw 14 25 ``` 15 26 16 27 ## Usage ··· 20 31 let () = 21 32 let word = 0x01280032 in 22 33 match Clcw.decode word with 23 - | Error e -> Printf.printf "Error: %a\n" Clcw.pp_error e 24 - | Ok clcw -> Printf.printf "CLCW: %a\n" Clcw.pp clcw 34 + | Error e -> Fmt.pr "Error: %a@." Clcw.pp_error e 35 + | Ok clcw -> Fmt.pr "CLCW: %a@." Clcw.pp clcw 25 36 26 37 (* Encode a CLCW *) 27 38 let () =
+1
clcw.opam
··· 15 15 "fmt" {>= "0.9"} 16 16 "wire" {>= "0.1"} 17 17 "alcotest" {with-test} 18 + "mdx" {with-test} 18 19 "alcobar" {with-test} 19 20 "odoc" {with-doc} 20 21 ]
+4
dune
··· 1 1 (env 2 2 (dev 3 3 (flags :standard %{dune-warnings}))) 4 + 5 + (mdx 6 + (files README.md) 7 + (libraries clcw fmt))
+2
dune-project
··· 1 1 (lang dune 3.21) 2 + (using mdx 0.4) 2 3 3 4 (name clcw) 4 5 ··· 24 25 (fmt (>= 0.9)) 25 26 (wire (>= 0.1)) 26 27 (alcotest :with-test) 28 + (mdx :with-test) 27 29 (alcobar :with-test)))