You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.0 KiB
53 lines
1.0 KiB
#pragma once
|
|
#include <fstream>
|
|
#include <functional>
|
|
#include <iostream>
|
|
#include <list>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <mutex>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <thread>
|
|
#include <vector>
|
|
|
|
#include "protocol/zfpga_commander/zfpga_commander.hpp"
|
|
#include "zfpga_basic_protocol/zaf_protocol.h"
|
|
#include "zfpga_basic_protocol/zaf_regs.hpp"
|
|
|
|
namespace iflytop {
|
|
namespace syncbox16chsdk {
|
|
using namespace std;
|
|
|
|
typedef enum {
|
|
kWorkMode_extCpyMode,
|
|
kWorkMode_extTriMode,
|
|
kWorkMode_manualTriMode,
|
|
} WorkMode_t;
|
|
|
|
typedef struct {
|
|
} reg_t;
|
|
|
|
const char* WorkModeToStr(uint32_t mode);
|
|
WorkMode_t WorkModeValueOf(const char* str);
|
|
list<string> WorkModeStrList();
|
|
|
|
class SyncBox16ChSDK {
|
|
public:
|
|
static SyncBox16ChSDK* ins() {
|
|
static SyncBox16ChSDK cmder;
|
|
return &cmder;
|
|
}
|
|
|
|
public:
|
|
void initialize();
|
|
|
|
void setPluseWidth(uint32_t widthus);
|
|
void setPluseFreq(uint32_t freq);
|
|
void setPluseGeneratorMode();
|
|
|
|
public:
|
|
};
|
|
} // namespace syncbox16chsdk
|
|
} // namespace iflytop
|