![]() |
ATEsystem.PIRIS-driver
1.0.1
ATEsystem.PIRIS-driver
|
ATEsystem.PIRIS.h
Go to the documentation of this file.
344 return (ver1._major == ver2._major && ver1._minor == ver2._minor && ver1._revision == ver2._revision);
356 (ver1._major == ver2._major && ver1._minor == ver2._minor && ver1._revision >= ver2._revision));
368 (ver1._major == ver2._major && ver1._minor == ver2._minor && ver1._revision <= ver2._revision));
415 << Utils::PadStr(pad_len) << TXT_ZOOM << "=" << Utils::PadStr(14, 4) << this->_zoom << std::endl
501 {
504 //********************************************** open/close ***************************************************//
512 virtual Status Open(void* dev, PirisDeviceType type, VerboseLevel verbose = VerboseLevel::NONE) = 0;
528 //************************************************ read ******************************************************//
554 //******************************************** reset/homing **************************************************//
567 //************************************************* set ******************************************************//
614 //************************************************ utils *****************************************************//
641 {
704 std::tuple<StatusEx, DataID> ReadID(); // IDN - !! need to call this on every start to set timeouts
746 YesNoNA fw_poll_support = YesNoNA::NOT_AVAILABLE; // device firmware is 1.7.2 and higher (stat read poll supp)
748 ErrorCluster parse_answer(std::string answer_in, std::vector<std::string>& tokens_out, uint8_t n);
749 StatusEx send_msg(std::vector<std::string>& tokens_out, std::string name, std::string cmd, uint8_t len);
Definition: ATEsystem.PIRIS.h:213
Definition: ATEsystem.PIRIS.h:154
Pylon::CDeviceInfo & get_device_eth() const
Definition: ATEsystem.PIRIS.cpp:800
const uint16_t getMinor() const
Definition: ATEsystem.PIRIS.cpp:556
Definition: ATEsystem.PIRIS.h:166
Definition: ATEsystem.PIRIS.h:165
Version(uint16_t major=0, uint16_t minor=0, uint16_t revision=0)
Definition: ATEsystem.PIRIS.cpp:546
Definition: ATEsystem.PIRIS.h:469
Definition: ATEsystem.PIRIS.h:232
Definition: ATEsystem.PIRIS.h:153
std::tuple< StatusEx, DataState > ReadState()
Definition: ATEsystem.PIRIS.cpp:255
const Mode get_mode() const
Definition: ATEsystem.PIRIS.cpp:820
Definition: ATEsystem.PIRIS.h:214
StatusEx SetRelative(int16_t focus=0, int16_t zoom=0, int16_t iris=0)
Definition: ATEsystem.PIRIS.cpp:329
Definition: ATEsystem.PIRIS.h:162
Definition: ATEsystem.PIRIS.h:693
bool verbose_is(VerboseLevel _verbose)
Definition: ATEsystem.PIRIS.cpp:420
DataParams(FocusZoomIris< uint16_t > max=FocusZoomIris< uint16_t >(), std::string lens="", bool ir=false, bool sens=false)
Definition: ATEsystem.PIRIS.cpp:682
friend bool operator<=(const Version &ver1, const Version &ver2)
Definition: ATEsystem.PIRIS.h:364
DevID_t CreateDevice(Mode mode=Mode::ETHERNET)
Definition: ATEsystem.PIRIS.cpp:708
Definition: ATEsystem.PIRIS.h:188
const PirisDeviceType get_type() const
Definition: ATEsystem.PIRIS.cpp:825
virtual void SetVerboseLevel(VerboseLevel level)=0
Definition: ATEsystem.PIRIS.h:136
Definition: ATEsystem.PIRIS.h:171
Definition: ATEsystem.PIRIS.h:168
Pylon::CInstantCamera * get_camera() const
Definition: ATEsystem.PIRIS.cpp:810
static Factory * getInstance()
Definition: ATEsystem.PIRIS.h:853
static std::string PadStr(const int total, const int minus=0, const char ch=' ')
Definition: ATEsystem.PIRIS.cpp:861
std::string ToString() const
Definition: ATEsystem.PIRIS.h:411
Definition: ATEsystem.PIRIS.h:170
virtual std::tuple< StatusEx, DataID > ReadID()=0
Definition: ATEsystem.PIRIS.h:167
DataPosition(FocusZoomIris< uint16_t > pos=FocusZoomIris< uint16_t >(), bool ir=false)
Definition: ATEsystem.PIRIS.cpp:677
Definition: ATEsystem.PIRIS.h:222
virtual std::tuple< StatusEx, DataPosition > ReadPosition()=0
std::string ToString() const
Definition: ATEsystem.PIRIS.cpp:651
static int16_t ScanSerial(std::vector< serial::PortInfo > &devices, bool verbose=false)
Definition: ATEsystem.PIRIS.cpp:68
StatusEx(Status status=Status::GENERAL_ERROR, ErrorCluster err=ErrorCluster())
Definition: ATEsystem.PIRIS.cpp:667
virtual std::tuple< StatusEx, DataParams > ReadParams()=0
virtual StatusEx DevHoming()=0
friend bool operator>=(const Version &ver1, const Version &ver2)
Definition: ATEsystem.PIRIS.h:352
Definition: ATEsystem.PIRIS.h:223
Status Open(void *dev, PirisDeviceType type, VerboseLevel verbose=VerboseLevel::NONE)
Definition: ATEsystem.PIRIS.cpp:73
virtual std::tuple< StatusEx, DataState > ReadState()=0
Definition: ATEsystem.PIRIS.h:758
virtual Status flush(bool ignore_err=false)=0
virtual StatusEx SetAbsolute(uint16_t focus=0, uint16_t zoom=0, uint16_t iris=0, bool ir_filter=false)=0
std::tuple< StatusEx, DataID > ReadID()
Definition: ATEsystem.PIRIS.cpp:99
static void CopySTLStr2CStr(char *dest, std::string source)
Definition: ATEsystem.PIRIS.cpp:847
const uint16_t getRevision() const
Definition: ATEsystem.PIRIS.cpp:561
IDevice * GetDeviceInstance(DevID_t id)
Definition: ATEsystem.PIRIS.cpp:746
std::tuple< StatusEx, DataPosition > ReadPosition()
Definition: ATEsystem.PIRIS.cpp:153
friend std::ostream & operator<<(std::ostream &strm, const Version &ver)
Definition: ATEsystem.PIRIS.h:337
Pylon::IPylonDevice * get_pylon_dev() const
Definition: ATEsystem.PIRIS.cpp:805
Definition: ATEsystem.PIRIS.h:443
Definition: ATEsystem.PIRIS.h:432
DataState(FocusZoomIris< bool > state=FocusZoomIris< bool >(), bool busy=false)
Definition: ATEsystem.PIRIS.cpp:687
Definition: ATEsystem.PIRIS.h:163
friend bool operator==(const Version &ver1, const Version &ver2)
Definition: ATEsystem.PIRIS.h:342
friend bool operator<(const Version &ver1, const Version &ver2)
Definition: ATEsystem.PIRIS.h:358
virtual Status close(bool ignore_err=false)=0
const std::tuple< T, T, T > getFocusZoomIris() const
Definition: ATEsystem.PIRIS.h:406
static void CpyCStr2CStr(char *dest, const char *source, size_t max_len)
Definition: ATEsystem.PIRIS.cpp:839
void verbose_set(VerboseLevel _verbose)
Definition: ATEsystem.PIRIS.cpp:425
Definition: ATEsystem.PIRIS.h:378
friend std::ostream & operator<<(std::ostream &strm, const PirisDevice &dev)
Definition: ATEsystem.PIRIS.h:277
Definition: ATEsystem.PIRIS.h:289
serial::PortInfo & get_serial() const
Definition: ATEsystem.PIRIS.cpp:815
bool operator==(T *pT) const
Definition: ATEsystem.PIRIS.h:809
Definition: ATEsystem.PIRIS.h:179
Definition: ATEsystem.PIRIS.h:173
PirisDevice(Pylon::CDeviceInfo &device)
Definition: ATEsystem.PIRIS.cpp:777
friend bool operator>(const Version &ver1, const Version &ver2)
Definition: ATEsystem.PIRIS.h:346
Definition: ATEsystem.PIRIS.h:831
Definition: ATEsystem.PIRIS.h:172
Definition: ATEsystem.PIRIS.h:202
Status RemoveDevice(DevID_t id)
Definition: ATEsystem.PIRIS.cpp:762
virtual VerboseLevel GetVerboseLevel()=0
virtual StatusEx SetRelative(int16_t focus=0, int16_t zoom=0, int16_t iris=0)=0
T * operator->(void) const
Definition: ATEsystem.PIRIS.h:794
const FocusZoomIris< uint16_t > max_value
Definition: ATEsystem.PIRIS.h:473
friend std::ostream & operator<<(std::ostream &strm, const FocusZoomIris &vals)
Definition: ATEsystem.PIRIS.h:420
const std::tuple< bool, int8_t, std::string > getErrorCluster() const
Definition: ATEsystem.PIRIS.cpp:646
virtual Status Close()=0
ErrorCluster(std::string err_raw="", bool overide=false)
Definition: ATEsystem.PIRIS.cpp:592
Definition: ATEsystem.PIRIS.h:169
virtual void remove()=0
static int16_t ScanEthernet(std::vector< Pylon::CDeviceInfo > &devices, bool verbose=false)
Definition: ATEsystem.PIRIS.cpp:63
const uint16_t getMajor() const
Definition: ATEsystem.PIRIS.cpp:551
SmartPointer(void) noexcept
Definition: ATEsystem.PIRIS.h:765
Definition: ATEsystem.PIRIS.h:224
const int8_t getErrNum() const
Definition: ATEsystem.PIRIS.cpp:636
StatusEx SetAbsolute(uint16_t focus=0, uint16_t zoom=0, uint16_t iris=0, bool ir_filter=false)
Definition: ATEsystem.PIRIS.cpp:354
VerboseLevel GetVerboseLevel()
Definition: ATEsystem.PIRIS.cpp:387
Definition: ATEsystem.PIRIS.h:175
YesNoNA GetFwPollSupport()
Definition: ATEsystem.PIRIS.cpp:382
T & operator()(void) const
Definition: ATEsystem.PIRIS.h:789
void SetVerboseLevel(VerboseLevel level)
Definition: ATEsystem.PIRIS.cpp:392
const std::tuple< uint16_t, uint16_t, uint16_t > getVersion() const
Definition: ATEsystem.PIRIS.cpp:566
static std::string CopyCStr2STLStr(const char *src)
Definition: ATEsystem.PIRIS.cpp:852
const FocusZoomIris< uint16_t > position
Definition: ATEsystem.PIRIS.h:460
virtual YesNoNA GetFwPollSupport()=0
Definition: ATEsystem.PIRIS.h:203
Definition: ATEsystem.PIRIS.h:201
Definition: ATEsystem.PIRIS.h:190
Definition: ATEsystem.PIRIS.h:176
void state_set(State _state)
Definition: ATEsystem.PIRIS.cpp:399
std::string ToString() const
Definition: ATEsystem.PIRIS.cpp:830
Definition: ATEsystem.PIRIS.h:191
Definition: ATEsystem.PIRIS.h:178
std::ostream & operator<<(std::ostream &os, const Status stat)
Definition: ATEsystem.PIRIS.cpp:22
friend std::ostream & operator<<(std::ostream &strm, const ErrorCluster &err)
Definition: ATEsystem.PIRIS.h:308
virtual Status read(std::string &data)=0
std::tuple< StatusEx, DataParams > ReadParams()
Definition: ATEsystem.PIRIS.cpp:202
Definition: ATEsystem.PIRIS.h:320
const std::string getMsg() const
Definition: ATEsystem.PIRIS.cpp:641
DataID(std::string name="", Version version=Version())
Definition: ATEsystem.PIRIS.cpp:672
Definition: ATEsystem.PIRIS.h:164
virtual Status write(const std::string data)=0
std::string GetDeviceName(DevID_t id)
Definition: ATEsystem.PIRIS.cpp:754
Factory & operator=(Factory const &)=delete
Definition: ATEsystem.PIRIS.h:485
Definition: ATEsystem.PIRIS.h:189
Definition: ATEsystem.PIRIS.h:174
T & operator *(void) const
Definition: ATEsystem.PIRIS.h:784
Definition: ATEsystem.PIRIS.h:248
Definition: ATEsystem.PIRIS.h:212
Definition: ATEsystem.PIRIS.h:177
virtual StatusEx DevReset()=0
Definition: ATEsystem.PIRIS.h:456
Definition: ATEsystem.PIRIS.h:200
FocusZoomIris(T focus=NULL, T zoom=NULL, T iris=NULL, int str_pad_len=25)
Definition: ATEsystem.PIRIS.h:390
virtual Status Open(const PirisDevice &dev, VerboseLevel verbose=VerboseLevel::NONE)=0
Generated by
![doxygen](doxygen.png)