AMM Converter WASM module
Converts AMB binary native format to JSON.
The P3 protocol is used in timing HW devices like AMBrc Decoder, MYLAPS RC4 / DR5 Decoder, AMBmx3 Decoder, TranX3 Decoder, ChipX/ProChip Decoder or BIB Decoder.
to_json to convert hex binary string into JSON array of PASSINGs from decoder
ammc-wasm in dependencies:
Import and use
import * as wasm from "ammc-wasm"; let decoded_json = wasm.to_json("8e02330043df000001000104490c01000304c6e548000408e8f067b2e17b04000502a7000602f500080200008104e80904008f");
For complete example see the simplest sample project with nodejs and expressjs https://bitbucket.org/skokys/p3lib-example
Other than PASSING messages from decoder are ignored for now. Contact me if you need to extend the lib coverage