/usr/include/lime/dataTypes.h is in liblimesuite-dev 17.12.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #ifndef LMS_DATA_TYPES_H
#define LMS_DATA_TYPES_H
#include <string.h>
#include <stdint.h>
namespace lime{
struct FPGA_DataPacket
{
uint8_t reserved[8];
uint64_t counter;
uint8_t data[4080];
};
struct complex16_t
{
int16_t i;
int16_t q;
};
const int samples12InPkt = 1360;
const int samples16InPkt = 1020;
class SamplesPacket
{
public:
static const int16_t maxSamplesInPacket = samples12InPkt; //total number of samples in all channels combined
uint64_t timestamp; //timestamp of the packet
uint16_t first; //index of first unused sample in samples
uint16_t last; //end index of samples
complex16_t samples[maxSamplesInPacket];
uint32_t flags;
SamplesPacket()
{
timestamp = 0;
first = 0;
last = 0;
flags = 0;
}
};
}// namespace lime
#endif
|