qt/ledset/efffrefr.h

36 lines
2.1 KiB
C
Raw Normal View History

2023-09-01 17:25:53 +08:00
#ifndef EFFFREFR_H
#define EFFFREFR_H
#include <QtCore/qglobal.h>
#if defined(EFFFREFR_LIBRARY)
# define EFFFREFR_EXPORT Q_DECL_EXPORT
#else
# define EFFFREFR_EXPORT Q_DECL_IMPORT
#endif
class EFFFREFR_EXPORT EffFrefr
{
public:
EffFrefr();
};
extern "C" Q_DECL_EXPORT float Get_Eff(int L/*小数权值*/ , int Npwm/*灰度位宽*/);
extern "C" Q_DECL_EXPORT float Get_Frefr(int L/*小数权值*/ , int Npwm/*灰度位宽*/ , int fdclk/*移位时钟频率*/ , int N/*扫描长度*/ , int H/*扫描类型*/ , int K/*倍频*/ );
extern "C" Q_DECL_EXPORT int Make_GryModulationTable(int L/*小数权值*/ , int Npwm/*灰度位宽*/, char * cFilePathAndName);
extern "C" Q_DECL_EXPORT int Make_GryModulationTableFromJsonFile( char * cJsonFile, char * cBinModuleBuf);
extern "C" Q_DECL_EXPORT int Make_XiaoYinTime(int L/*小数权值*/ , int Npwm/*灰度位宽*/ , int fdclk/*移位时钟频率*/ , int N/*扫描长度*/ , int H/*扫描类型*/ , int K/*倍频*/ );
extern "C" Q_DECL_EXPORT int Make_GryModulationTableFromJsonFile( char * cJsonFile , char * cBinModuleBuf);
extern "C" Q_DECL_EXPORT int Get_ScanIndexFromJsonFile(char * cJsonFile , char * cScanIndexBuf, int FpgaVer);
extern "C" Q_DECL_EXPORT int Get_ScanIndexFromJsonObject(QJsonObject obj , char * cScanBuf, int FpgaVer);
extern "C" Q_DECL_EXPORT int Get_MiaoDianFromJsonFile(char * cJsonFile , char * cMiaoDianBuf , int FpgaVer);
extern "C" Q_DECL_EXPORT int Get_MiaoDianFromJsonObject(QJsonObject obj , char * cJsonFile, int FpgaVer);
extern "C" Q_DECL_EXPORT int Get_JiLianFromJsonFile(char * cJsonFile , char * cJiLianBuf, int FpgaVer);
extern "C" Q_DECL_EXPORT int Get_JiLianFromJsonObject(QJsonObject obj , char * cJiLianBuf, int FpgaVer);
extern "C" Q_DECL_EXPORT int Get_DriverIcParamFromInputParam(char * cJsonFile , int * inParamBuf, int inLen ,int IC_code , int * outParamBuf);
extern "C" Q_DECL_EXPORT int Get_DriverIcParamFromJsonFile(char * cJsonFile , int IC_code , int * outParamBuf);
extern "C" Q_DECL_EXPORT int Get_DriverIcParamFromJsonObject(QJsonObject obj , int IC_code , int * outParamBuf);
#endif // EFFFREFR_H