/usr/include/lime/FPGA_common.h is in liblimesuite-dev 16.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 | /**
@file FPGA_common.h
@author Lime Microsystems
@brief Common functions used to work with FPGA
*/
#ifndef FPGA_COMMON_H
#define FPGA_COMMON_H
#include "IConnection.h"
#include <stdint.h>
#include <dataTypes.h>
namespace lime
{
namespace fpga
{
int StartStreaming(IConnection* serPort);
int StopStreaming(IConnection* serPort);
int ResetTimestamp(IConnection* serPort);
struct FPGA_PLL_clock
{
double outFrequency;
double phaseShift_deg;
uint8_t index;
bool bypass;
double rd_actualFrequency;
};
int SetPllFrequency(IConnection* serPort, uint8_t pllIndex, const double inputFreq, FPGA_PLL_clock* outputs, const uint8_t clockCount);
int SetDirectClocking(IConnection* serPort, uint8_t clockIndex, const double inputFreq, const double phaseShift_deg);
int FPGAPacketPayload2Samples(const uint8_t* buffer, const size_t bufLen, const size_t chCount, const int format, complex16_t** samples, size_t* samplesCount);
int Samples2FPGAPacketPayload(const complex16_t* const* samples, const size_t samplesCount, const size_t chCount, const int format, uint8_t* buffer, size_t* bufLen);
}
}
#endif // FPGA_COMMON_H
|