Proposal: In band metadata format - junaid124/bladeRF GitHub Wiki
This is a work in progress. Do not reference this for current implementations.
The bladeRF stream consists of blocks of samples that are multiples of 1024 samples (4096 bytes) in size. When metadata is enabled, the first 4 samples of a block are replaced with metadata.
The below table depicts this 16-byte metadata. All fields are in little-endian byte order.
| Offset | Size (bytes) | Item | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 4 | Header |
|
|||||||||||||||||||||||||||
| 4 | 4 | Stream identifier | Currently set to 0. | |||||||||||||||||||||||||||
| 8 | 8 | Timestamp | Derived from free-running samplerate counter |