About Us
Museum

RFID Guardian Software:Library:Generic library modules:Symbol Stream

From RFID Guardian

RFID Guardian Software / Library / Generic library modules / Symbol Stream


Symbol Stream

A symbol stream is a circular buffer. It harbours streams of 16-bit items that may represent data bytes (then the upper 8 bits are 0), or some symbol by a nonzero value in the upper 8 bits: a SOF (Start Of Frame) marker that also indicates the type of frame (e.g. SOF_15693_1_oo_4 for a 1-out-of-4 15693 frame), or an EOF (End Of Frame) marker, or an indication that the data byte is a partial byte, or an indication that the data byte should be (partially) jammed. A symbol stream implements this using two byte arrays, data[] for the lower 8 bits of all items, and marker[] for the upper 8 bits. If the array marker[] is NULL, the symbol stream can contain plain data only.

API include/mrg_symbol_stream.h
Source [ src/symbol-stream/mrg_symbol_stream.c ]