always pass cable configuration. Check if /dev if empty or not

This commit is contained in:
Gwenhael Goavec-Merou
2020-03-08 16:58:05 +01:00
parent deb3d0bed2
commit e0c19223c0
6 changed files with 32 additions and 22 deletions
+6 -6
View File
@@ -5,12 +5,6 @@
class FTDIpp_MPSSE {
public:
FTDIpp_MPSSE(const std::string &dev, unsigned char interface,
uint32_t clkHZ, bool verbose = false);
FTDIpp_MPSSE(int vid, int pid, unsigned char interface,
uint32_t clkHZ, bool verbose = false);
~FTDIpp_MPSSE();
typedef struct {
int vid;
int pid;
@@ -21,6 +15,12 @@ class FTDIpp_MPSSE {
int bit_high_dir;
} mpsse_bit_config;
FTDIpp_MPSSE(const mpsse_bit_config &cable, const std::string &dev,
uint32_t clkHZ, bool verbose = false);
FTDIpp_MPSSE(const mpsse_bit_config &cablen,
uint32_t clkHZ, bool verbose = false);
~FTDIpp_MPSSE();
int init(unsigned char latency, unsigned char bitmask_mode, unsigned char mode,
mpsse_bit_config &bit_conf);
int setClkFreq(uint32_t clkHZ);