LdmrsNtpTimeApp.hpp
Go to the documentation of this file.
1 //
2 // LdmrsNtpTimeApp.hpp
3 //
4 
5 #ifndef LDMRSNTPTIMEAPP_HPP
6 #define LDMRSNTPTIMEAPP_HPP
7 
8 #include "../manager.hpp"
9 #include "../tools/Mutex.hpp"
10 #include "../datatypes/Scan.hpp"
11 #include "../devices/LuxBase.hpp"
12 
13 namespace application
14 {
15 
16 struct ntp_time_t
17 {
18  uint32_t second; // Seconds since 1.1.1900
19  uint32_t fraction;
20 };
21 
22 //
23 // LdmrsNtpTimeApp
24 //
26 {
27 public:
28  LdmrsNtpTimeApp(Manager* manager);
29  virtual ~LdmrsNtpTimeApp();
30 
31 protected:
32  void setData(BasicData& data); // Receiver
33 
34 private:
35  ntp_time_t convertUnixTimeToNtpTime(struct timeval& unixTime);
36 
37 // void checkResolution(Scan& scan);
38  void changeThreadFunction(bool& endThread, UINT16& waitTimeMs);
39 // bool changeFlexResConfiguration(const ScannerInfo::ResolutionMap& configuredRM);
40 // bool changeAngularResolutionType(devices::AngularResolutionType type);
41 // bool readDetailedErrorCode(UINT32* code = NULL);
42 
43 private:
47 };
48 
49 } // namespace application
50 
51 #endif
uint16_t UINT16
SickThread< LdmrsNtpTimeApp,&LdmrsNtpTimeApp::changeThreadFunction > m_changeThread
Wrapper class for posix threads.
Definition: SickThread.hpp:80


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Mon Oct 26 2020 03:27:30