struct SampleDatagram | |
{ | |
DatagramHeaderDgHeader; | |
char ChannelID[128]; | |
short Datatype; | |
char Spare[2]; | |
long Offset; | |
long Count; | |
byte Samples[]; | |
}; |
• | DatagramHeader DgHeader: This is the binary datagram in use. The type is RAW3. |
• | ChannelID[128]: This is the channel identification. |
• | Datatype:
|
• | Spare[2]: This is a parameter for future expansions |
• | Offset: This is the first sample number. |
• | Count: This is the total number of samples. |
• | Samples[]: These are the received sample values. The number of values in Samples[] depends on the value of Count and the Datatype.
The sample values S(i,n) are arranged as:
Real(S(1,1)), Imag(S(1,1)),
Real(S(2,1)), Imag(S(2,1)),
Real(S(3,1)), Imag(S(3,1)),
Real(S(4,1)), Imag(S(4,1)),
Real(S(1,2)), Imag(S(1,2)), ...
|
• | Bit 3 is set to "1", so this is ComplexFloat32 data. |
• | Bits 8 to 10 are 100, which means that we have four complex values per sample. |
1 | 1.23: No changes made |
2 | 1.22: No changes made |
3 | 1.21: No changes made |
4 | 1.20: No changes made |