Skip to main content

ST 0601 C ABI

Use include/misb0601.h for the signatures, enum values and structure layouts shipped with your binary. Call Misb0601LicenseInitialize and inspect the three capability flags.

TaskEntrypointsRelease
Convert between JSON and complete wire packetsMisb0601EncodeJSON, Misb0601DecodeJSONMisb0601BufferFree
Encode a local-set valueMisb0601EncodeLocalSetJSONMisb0601BufferFree
Select JSON, raw packet, local-set or item outputsMisb0601DecodePacket, Misb0601DecodeLocalSet with decode optionsMisb0601DecodeResultFree
Find a packet inside a larger bufferMisb0601FindPacketMisb0601FindResultFree
Read tag values or nested itemsMisb0601DecodeTagValues, Misb0601DecodeNestedItemsMisb0601TagValueResultFree
Get rule descriptions or validateMisb0601ValidationRules, Misb0601ValidatePacket, Misb0601ValidateLocalSetMisb0601BufferFree for the JSON output
Count nested series entriesMisb0601CountSeriesItemsCaller-owned count

For complete packets include the universal key, BER length and value. A local-set value starts at the first tag. Use the matching local-set call when you already have the value.

Use Misb0601DecodePacket with output_flags to request JSON, packet bytes, a local-set value, or a tag-value table in a single result. Combine the MISB0601_OUTPUT_* flags with bitwise OR. A find result also carries the start offset and the number of input bytes consumed. The demo filter applies to the returned data in each shape.

For streams, create a handle with Misb0601StreamDecoderCreate. Choose output flags in its configuration. Push chunks with Misb0601StreamDecoderPush or demuxed payloads with Misb0601StreamDecoderPushPES. Poll Misb0601StreamDecoderNext until NO_DATA, releasing each event with Misb0601StreamEventFree. Flush, drain again, free the handle, and then shut down licensing. See the stream example.